/* Data definitions for internal representation of bison's input,
- Copyright 1984, 1986, 1989, 1992, 2001, 2002
+ Copyright (C) 1984, 1986, 1989, 1992, 2001, 2002
Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
Associativities are recorded similarly in SYMBOLS[I]->assoc. */
+#include "symtab.h"
#define ISTOKEN(s) ((s) < ntokens)
#define ISVAR(s) ((s) >= ntokens)
extern int start_symbol;
-/* Associativity values for tokens and rules. */
-typedef enum
-{
- right_assoc,
- left_assoc,
- non_assoc
-} associativity;
-
-
typedef struct rule_s
{
/* The number of the rule in the source. It is usually the index in
RULES too, except if there are useless rules. */
+ short user_number;
+
+ /* The index in RULES. Usually the rule number in the source,
+ except if some rules are useless. */
short number;
- short lhs;
+ bucket *lhs;
short *rhs;
short prec;
short precsym;