]> git.saurik.com Git - bison.git/blame - src/gram.c
entered into RCS
[bison.git] / src / gram.c
CommitLineData
f7d4d87a
DM
1/* Allocate input grammar variables for bison,
2 Copyright (C) 1984, 1986, 1989 Free Software Foundation, Inc.
3
4This file is part of Bison, the GNU Compiler Compiler.
5
6Bison is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11Bison is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with Bison; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20
21/* comments for these variables are in gram.h */
22
23int nitems;
24int nrules;
25int nsyms;
26int ntokens;
27int nvars;
28
29short *ritem;
30short *rlhs;
31short *rrhs;
32short *rprec;
33short *rprecsym;
34short *sprec;
35short *rassoc;
36short *sassoc;
37short *token_translations;
38short *rline;
39
40int start_symbol;
41
42int translations;
43
44int max_user_token_number;
45
46int semantic_parser;
47
48int pure_parser;
49
50int error_token_number;
51
52/* This is to avoid linker problems which occur on VMS when using GCC,
53 when the file in question contains data definitions only. */
54
55void
56dummy()
57{
58}