]> git.saurik.com Git - bison.git/commitdiff
tests: call the parser from another compilation unit.
authorAkim Demaille <akim@lrde.epita.fr>
Mon, 11 Jun 2012 14:47:46 +0000 (16:47 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Fri, 15 Jun 2012 13:39:19 +0000 (15:39 +0200)
In order to improve the testing of %defines, which exports the
interface of the generated parser, change the calc.at tests so that
when %defines is passed, main will be in another compilation unit.  It
loads the generated header.

* tests/calc.at (AT_CALC_MAIN): New.
Includes the definition of the global variables.
Therefore, now declare them from the %requires section of the parser.
Adjust to yydebug and yyparse being renamed by %name-prefix.


No differences found