[antlr-interest] Input String for Lexer
Pete Forman
pete.forman at westerngeco.com
Tue May 25 08:34:23 PDT 2004
At 2004-05-25 16:11 +0200, Bussolaro Luigi wrote:
>Does anybody know the way to give a String in input to my Lexer instead
>an InputStream?
Use a Reader rather than an InputStream.
import java.io.StringReader;
Lexer myLexer = new Lexer(new StringReader(myString));
--
Pete Forman -./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
pete.forman at westerngeco.com -./\.- opinion of Schlumberger, Baker
http://petef.port5.com -./\.- Hughes or their divisions.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list