]> git.saurik.com Git - bison.git/blob - src/scan-code.h
src/location.h: #include "system.h" rather than <stdbool.h>.
[bison.git] / src / scan-code.h
1 /* Bison Action Scanner
2
3 Copyright (C) 2006 Free Software Foundation, Inc.
4
5 This file is part of Bison, the GNU Compiler Compiler.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 02110-1301 USA
21 */
22
23 #ifndef SCAN_CODE_H_
24 # define SCAN_CODE_H_
25
26 # include "location.h"
27 # include "symlist.h"
28
29 /* Keeps track of the maximum number of semantic values to the left of
30 a handle (those referenced by $0, $-1, etc.) are required by the
31 semantic actions of this grammar. */
32 extern int max_left_semantic_context;
33
34 void code_scanner_free (void);
35
36 /* The action A contains $$, $1 etc. referring to the values
37 of the rule R. */
38 const char *translate_rule_action (symbol_list *r, const char *a, location l);
39
40 /* The action A refers to $$ and @$ only, referring to a symbol. */
41 const char *translate_symbol_action (const char *a, location l);
42
43 /* The action contains no special escapes, just protect M4 special
44 symbols. */
45 const char *translate_code (const char *a, location l);
46
47 #endif /* !SCAN_CODE_H_ */