How to get current byte position of the parser in Antlr with c# target?
Posted
by Aftershock
on Stack Overflow
See other posts from Stack Overflow
or by Aftershock
Published on 2010-05-09T21:30:47Z
Indexed on
2010/05/10
17:04 UTC
Read the original article
Hit count: 262
Hi,
I am interested in the current byte position in the stream when parsing something using Antlr 3.
I have seen there is a similar question but there was no real answer there. That is why I am trying again.
I am not interested in token index, byte position in a line etc...
Could you someone tell me that? It is obvious that some code has to be written/overridden. Does someone have specific code to write? I use C#.
© Stack Overflow or respective owner