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)
commitc8c220d19ae0a8ea22f04cd2580b28f773b1a74e
tree2dc28d0bdfff18db06f5518dfcd4c55e4887e657
parent56ca3d8fce0c9db2f2829d7a7a07a9ad06cdf6a8
tests: call the parser from another compilation unit.

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.
tests/calc.at