All the grammars included in the source distribution use it. So, you
can look at any of them.
You specify the following in the top-level module of your grammar:
option withLocation;
All nodes of the xtc framework have a location field, which will now
be set by the parser for productions creating a generic node as their
semantic values.
Robert
On Feb 27, 2007, at 7:35 PM, Steven Foster wrote:
Hi,
Where can I find an example or explanation of how to use
withLocation in Rats!?
thanks,
Steven
_______________________________________________
PEG mailing list
PEG@lists.csail.mit.edu
https://lists.csail.mit.edu/mailman/listinfo/peg
_______________________________________________
PEG mailing list
PEG@lists.csail.mit.edu
https://lists.csail.mit.edu/mailman/listinfo/peg