[prev in list] [next in list] [prev in thread] [next in thread] 

List:       antlr-interest
Subject:    Re: [antlr-interest] How to generate code files
From:       "Raphael Reitzig" <r_reitzi () cs ! uni-kl ! de>
Date:       2008-07-29 13:03:21
Message-ID: 20080729150321.15354xcnu0n1kum8 () horde ! verrech ! net
[Download RAW message or body]

This message is in MIME format and has been PGP signed.


Hi!

I fear a tree walker makes no sense without any tree, so you'll need a  
parser to generate a tree. The parser again needs a lexer. You should  
have both.

Regards

Raphael

cokey5614@sina.com wrote (Mon Jul 28 07:36:26 2008):

> &nbsp;Hi,
> I created treeGrammarFileName.g file(it is started with [tree  
> grammar fileName]) and treeGrammarFileNameWalker.testSuite file in  
> source folder, and then
> tried the command :
> &nbsp;&nbsp;&nbsp; org.antlr.gunit.Interp treeGrammarFileNameWalker.testSuite
> but,error{
> &nbsp;&nbsp;&nbsp; java.lang.ClassNOtFoundException:treeGrammarFileNameLexer
> &nbsp;&nbsp;&nbsp; at java.net.URLClassLoader$1.run(Unknown Source)
> } always happen.
> in fact, in source folder, there are only treeGrammarFileName.java  
> and treeGrammarFileName.class ,
> there is no treeGrammarFileNameLexer.java file.
> but, It seems that treeGrammarFileNameLexer.java and  
> treeGrammarFileNameParser.java are necessary too.
> Q:How to generate [ treeGrammarFileNameLexer.java and  
> treeGrammarFileNameParser.java] code files for treeGrammarFileName.g?
> 
> thanks
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
>  cokey
> 
> -------------------------------------------------------------------
> ????2G????(http://mail.sina.com.cn/)



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic