Prototype support of %lex-param and %parse-param.
authorAkim Demaille <akim@epita.fr>
Sat, 19 Oct 2002 14:38:06 +0000 (14:38 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 19 Oct 2002 14:38:06 +0000 (14:38 +0000)
commitae7453f2ba115eba9d24aad81b0f17b10c6b839a
tree5a7de347bb4cf892b4954b797c2f9eda4554f89d
parent0e57572183811127b9cc88f25b6e87b3273d64f9
Prototype support of %lex-param and %parse-param.
* src/parse-gram.y: Add the definition of the %lex-param and
%parse-param tokens, plus their rules.
Drop the `_' version of %glr-parser.
Add the "," token.
* src/scan-gram.l (INITIAL): Scan them.
* src/muscle_tab.c: Comment changes.
(muscle_insert, muscle_find): Rename `pair' as `probe'.
* src/muscle_tab.h (MUSCLE_INSERT_PREFIX): Remove unused.
(muscle_entry_s): The `value' member is no longer const.
Adjust all dependencies.
* src/muscle_tab.c (muscle_init): Adjust: use
MUSCLE_INSERT_STRING.
Initialize the obstack earlier.
* src/muscle_tab.h, src/muscle_tab.c (muscle_grow)
(muscle_pair_list_grow): New.
* data/c.m4 (b4_c_function_call, b4_c_args): New.
* data/yacc.c (YYLEX): Use b4_c_function_call to honor %lex-param.
* tests/calc.at: Use %locations, not --locations.
(AT_CHECK_CALC_GLR): Use %glr-parser, not %glr_parser.
13 files changed:
ChangeLog
TODO
data/c.m4
data/yacc.c
src/muscle_tab.c
src/muscle_tab.h
src/output.c
src/parse-gram.c
src/parse-gram.h
src/parse-gram.y
src/scan-gram.c
src/scan-gram.l
tests/calc.at