| 1 | /* Match rules with nonterminals for bison, |
| 2 | |
| 3 | Copyright (C) 1984, 1989, 2000, 2001, 2002 Free Software |
| 4 | Foundation, Inc. |
| 5 | |
| 6 | This file is part of Bison, the GNU Compiler Compiler. |
| 7 | |
| 8 | Bison is free software; you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation; either version 2, or (at your option) |
| 11 | any later version. |
| 12 | |
| 13 | Bison is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with Bison; see the file COPYING. If not, write to |
| 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 | Boston, MA 02110-1301, USA. */ |
| 22 | |
| 23 | #ifndef DERIVES_H_ |
| 24 | # define DERIVES_H_ |
| 25 | |
| 26 | # include "gram.h" |
| 27 | |
| 28 | /* DERIVES[SYMBOL - NTOKENS] points to a vector of the rules that |
| 29 | SYMBOL derives, terminated with NULL. */ |
| 30 | extern rule ***derives; |
| 31 | |
| 32 | /* Compute DERIVES. */ |
| 33 | |
| 34 | void derives_compute (void); |
| 35 | void derives_free (void); |
| 36 | |
| 37 | #endif /* !DERIVES_H_ */ |