]> git.saurik.com Git - bison.git/commit - data/lalr1.cc
Make it possible to return a symbol_type from yylex.
authorAkim Demaille <demaille@gostai.com>
Tue, 19 Aug 2008 19:39:03 +0000 (21:39 +0200)
committerAkim Demaille <demaille@gostai.com>
Tue, 11 Nov 2008 14:48:52 +0000 (15:48 +0100)
commit092778750428c0d35378691bb4db94ef5b5ab988
treedc071b2ee515af80498fb220d7921f2e86a0259a
parent64c1b92a4ffa5cf94abe334fcb27610e5e47352b
Make it possible to return a symbol_type from yylex.

* data/lalr1.cc (b4_lex_symbol_if): New.
(parse): When lex_symbol is defined, expected yylex to return the
complete lookahead.
* etc/bench.pl.in (generate_grammar_list): Extend to support this
yylex interface.
(bench_variant_parser): Exercise it.
ChangeLog
data/lalr1.cc
etc/bench.pl.in