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