]> git.saurik.com Git - bison.git/commit - examples/variant.yy
Use locations in the variant example.
authorAkim Demaille <demaille@gostai.com>
Wed, 31 Dec 2008 15:13:04 +0000 (16:13 +0100)
committerAkim Demaille <demaille@gostai.com>
Mon, 2 Mar 2009 15:30:57 +0000 (16:30 +0100)
commit882f02ed8383e5dc0d2122d72a77143acd9d3607
tree1ed5b89dce55309021cadfdc096ee2466bea28b2
parent0623bacc05d3cdcbac1776cf33798ee1022a6e60
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.
ChangeLog
examples/variant.yy