X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b2ca4022ea6c61e10ac87a0a92bb0f998ecf8b48..490abf53b1391c2bc49564bff71ac400880323ad:/src/gram.h diff --git a/src/gram.h b/src/gram.h index 1b182320..1691c858 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,20 +97,19 @@ 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 - by the parser and throughout bison. If translations is zero, the - translation table is not used because the two kinds of token - numbers are the same. (It is noted in reader.c that "Nowadays - translations is always set to 1...") */ + by the parser and throughout bison. */ extern short *token_translations; -extern int translations; extern int max_user_token_number; /* SEMANTIC_PARSER is nonzero if the input file says to use the hairy