]> git.saurik.com Git - bison.git/commit
also support $<foo>$ in the %initial-action
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 27 Jul 2012 12:20:00 +0000 (14:20 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Fri, 27 Jul 2012 12:47:20 +0000 (14:47 +0200)
commitcd735a8c6caab8f705fe551cc0316d0292eef11d
treec331bc37f5786acba95fa02cea0a2671f253e1b4
parentd6a44ffd0021ab0ca23e5e6243ecacb4e4b17ef1
also support $<foo>$ in the %initial-action

scan-code.l is already passing argument to b4_dollar_dollar for the
initial acton, but its definition (of b4_dollar_dollar) does not use
this argument.

Generalize this definition, and use it for the %initial-action too.

* data/c.m4 (b4_dollar_dollar_, b4_dollar_pushdef, b4_dollar_popdef):
Instead of expecting a pointer, require a value, and use ".".
Since they are now generic enough, move to...
* data/c-like.m4: this new file.
* data/c.m4, data/java.m4: Load it.
* data/glr.c, data/lalr1.cc, data/lalr1.java, data/yacc.c: Use
b4_dollar_pushdef for the %initial-action.
* tests/actions.at: Check that.
* data/Makefile.am: Adjust.
* NEWS, doc/bison.texi: Document.
NEWS
data/Makefile.am
data/c-like.m4 [new file with mode: 0644]
data/c.m4
data/glr.c
data/java.m4
data/lalr1.cc
data/lalr1.java
data/yacc.c
doc/bison.texi
tests/actions.at