[antlr-interest] Get absolute start and end of parsing rule
Nicolai Mainiero
nicolai at mainiero.de
Wed Dec 20 05:50:36 PST 2006
Hi,
please can you tell me how I can get the beginning and end of an
matching rulr in the parser like:
functionDec :
{ // get the beginning of functionDec here}
'function' paramlist functionbody
{// get the end of functionDec here}
It seems like the Token Object contains this information when
converted toString() I get the following [@84,437:444='function',<33>,
28:0]
^
The marked Value is what I want. So how can I get it?
Yours Nicolai Mainiero
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2421 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20061220/e3c1afff/attachment.bin
More information about the antlr-interest
mailing list