Use locations in the variant example.
commit882f02ed8383e5dc0d2122d72a77143acd9d3607
authorAkim Demaille <demaille@gostai.com>
Wed, 31 Dec 2008 15:13:04 +0000 (31 16:13 +0100)
committerAkim Demaille <demaille@gostai.com>
Mon, 2 Mar 2009 15:30:57 +0000 (2 16:30 +0100)
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