[antlr-interest] Help: writing your own scanner with antlr
medha.rm <medha at rocketmail.com>
medha at rocketmail.com
Mon Jan 27 10:09:37 PST 2003
Hello,
For some reasons I need to interface my own scanner with my antlr
grammar. The standard interface between scanner and parser in Antlr
seems to be through an object Token and getToken() method that
returns the next token within the stream.
I have problems achieving this. I use Token.setText() method to set
the text field within the scanner but it does not work. I have no way
to find out exactly how the antlr-generated scanner does it, because
I only know that the tokens actually get created through base class
that Antlr-scanner inherits so it happens "behind the scenes".
Can you please let me know any way to do this? If needed, I can
provide more info, and we could take this discussion offline.
Thanks a lot for all the help,
Medha
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list