b4_tables_map.
commit6ab1adbe1e533119e8a70bb34dbb13c6c8b5e793
authorAkim Demaille <demaille@gostai.com>
Sat, 22 Nov 2008 21:22:43 +0000 (22 22:22 +0100)
committerAkim Demaille <demaille@gostai.com>
Tue, 25 Nov 2008 21:18:09 +0000 (25 22:18 +0100)
tree498ebd0b2113c9c553fb90a2e51843a04e17721a
parent0fddb3d59f2829ba1d7ef64c38496bb9d66319ee
b4_tables_map.

The point is to factor the generation of the tables across skeletons.
This is language dependant.

* data/c.m4 (b4_comment_): New.
Should be usable to define how to generate tables independently of
the language.
(b4_c_comment): New.
(b4_comment): Bounce to b4_c_comment.
Now support $2 = [PREFIX] for indentation.
* data/lalr1.cc (b4_table_declare): Don't output a comment if
there is no comment.
Indent it properly when there is one.
Output the ending semicolon.
(b4_table_define): Space changes.
Output the ending semicolon.
(b4_tables_map): New.
Use it twice instead of declaring and defining the (integral)
tables by hand.
ChangeLog
data/c.m4
data/lalr1.cc