]> git.saurik.com Git - bison.git/commit - data/lalr1.cc
Introduce a hierarchy for symbols.
authorAkim Demaille <demaille@gostai.com>
Sat, 2 Aug 2008 19:42:48 +0000 (21:42 +0200)
committerAkim Demaille <demaille@gostai.com>
Sun, 9 Nov 2008 18:48:20 +0000 (19:48 +0100)
commit1f7d007bf621225d3bc04c01d7d5ba3e332b1e34
treea4aa48fa3846cc115ffbbaffebd42e854eec2b40
parentbc0b0477e2ad3f4caaeec8084d37b49400f4e0b5
Introduce a hierarchy for symbols.

* data/lalr1.cc (symbol_base_type, symbol_type): New.
(data_type): Rename as...
(stack_symbol_type): this.
Derive from symbol_base_type.
(yy_symbol_value_print_): Merge into...
(yy_symbol_print_): this.
Rename as...
(yy_print_): this.
(yydestruct_): Rename as...
(yy_destroy_): this.
(b4_symbols_actions, YY_SYMBOL_PRINT): Adjust.
(parser::parse): yyla is now of symbol_type.
Use its type member instead of yytoken.
ChangeLog
data/lalr1.cc