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.
This commit is contained in:
Akim Demaille
2008-08-19 21:39:03 +02:00
parent 64c1b92a4f
commit 0927787504
3 changed files with 73 additions and 35 deletions

View File

@@ -1,3 +1,13 @@
2008-11-11 Akim Demaille <demaille@gostai.com>
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.
2008-11-11 Akim Demaille <demaille@gostai.com>
Remove useless bench case.