[antlr-interest] Test the lexer
Xue Yong Zhi
zhixueyong at hotmail.com
Mon Feb 19 07:30:39 PST 2007
Richard Hu wrote:
> Hi, All:
>
> Is it possible to test the lexer without testing the parser? I would
> like to send some stream into the lexer and see tokens being generate.
> But all the test samples I've seen include parser.
>
If you use ANTLR 2.7.* and Java, you can use this as an example:
http://xruby.googlecode.com/svn/trunk/src/com/xruby/compiler/parser/RubyLexerTest.java
--
Xue Yong Zhi
XRuby (Ruby to Java bytecode compiler):
http://xruby.blogspot.com
More information about the antlr-interest
mailing list