]> git.saurik.com Git - bison.git/blame - src/assoc.h
yysyntax_error: prepare for readability of next patches.
[bison.git] / src / assoc.h
CommitLineData
a945ec39 1/* Associativity information.
7d424de1
PE
2
3 Copyright (C) 2002, 2006, 2008, 2009, 2010 Free Software
4 Foundation, Inc.
a945ec39
AD
5
6 This file is part of Bison, the GNU Compiler Compiler.
7
f16b0819 8 This program is free software: you can redistribute it and/or modify
a945ec39 9 it under the terms of the GNU General Public License as published by
f16b0819
PE
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
a945ec39 12
f16b0819 13 This program is distributed in the hope that it will be useful,
a945ec39
AD
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
f16b0819 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
a945ec39
AD
20
21#ifndef ASSOC_H_
22# define ASSOC_H_
23
24/* Associativity values for tokens and rules. */
25typedef enum
26{
d78f0ac9
AD
27 undef_assoc, /** Not defined. */
28 right_assoc, /** %right */
29 left_assoc, /** %left */
30 non_assoc, /** %nonassoc */
31 precedence_assoc /** %precedence */
3de372bb 32} assoc;
a945ec39 33
6e0f8287 34char const *assoc_to_string (assoc a);
a945ec39
AD
35
36#endif /* !ASSOC_H_ */