X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b2ca4022ea6c61e10ac87a0a92bb0f998ecf8b48..bbb5bcc6f85b9ae3f951ab062455767318b827ad:/src/gram.h?ds=sidebyside diff --git a/src/gram.h b/src/gram.h index 1b182320..e270db5c 100644 --- a/src/gram.h +++ b/src/gram.h @@ -1,5 +1,5 @@ /* Data definitions for internal representation of bison's input, - Copyright (C) 1984, 1986, 1989, 1992 Free Software Foundation, Inc. + Copyright 1984, 1986, 1989, 1992 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -97,10 +97,13 @@ extern int start_symbol; /* associativity values in elements of rassoc, sassoc. */ +typedef enum +{ + right_assoc, + left_assoc, + non_assoc +} associativity; -#define RIGHT_ASSOC 1 -#define LEFT_ASSOC 2 -#define NON_ASSOC 3 /* token translation table: indexed by a token number as returned by the user's yylex routine, it yields the internal token number used