[antlr-interest] Help: writing your own scanner with antlr
mzukowski at yci.com
mzukowski at yci.com
Mon Jan 27 10:46:05 PST 2003
Java or C++? The source is all there. You should be able to dig into the
base class and see what it does.
Monty
-----Original Message-----
From: medha.rm <medha at rocketmail.com> [mailto:medha at rocketmail.com]
Sent: Monday, January 27, 2003 10:43 AM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Help: writing your own scanner with antlr
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/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list