1 /* Bison Action Scanner
3 Copyright (C) 2006 Free Software Foundation, Inc.
5 This file is part of Bison, the GNU Compiler Compiler.
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.
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.
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
26 # include "location.h"
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
;
34 void code_scanner_free (void);
36 /* The action of the rule R contains $$, $1 etc. referring to the values
38 char const *translate_rule_action (symbol_list
*r
);
40 /* The action A refers to $$ and @$ only, referring to a symbol. */
41 char const *translate_symbol_action (char const *a
, location l
);
43 /* The action contains no special escapes, just protect M4 special
45 char const *translate_code (char const *a
, location l
);
47 #endif /* !SCAN_CODE_H_ */