Use locations in the variant example.

Yes, this obfuscates the point of this example, variants only.  But glr.cc
cannot work (yet?) without locations.  This change makes it easier to use
this example with glr.cc.

	* examples/variant.yy (assert): %define it.
	(locations): Request them.
	(yylex): Bind the location to the stage.
This commit is contained in:
Akim Demaille
2009-03-02 16:30:57 +01:00
parent 0623bacc05
commit 882f02ed83
2 changed files with 22 additions and 7 deletions
+11
View File
@@ -1,3 +1,14 @@
2009-03-02 Akim Demaille <[email protected]>
Use locations in the variant example.
Yes, this obfuscates the point of this example, variants only. But glr.cc
cannot work (yet?) without locations. This change makes it easier to use
this example with glr.cc.
* examples/variant.yy (assert): %define it.
(locations): Request them.
(yylex): Bind the location to the stage.
2009-03-02 Akim Demaille <[email protected]>
Dub make_TOKEN as a public type interface.