[antlr-interest] How to generate code files	for	treeGrammarFileName.g?
    Raphael Reitzig 
    r_reitzi at cs.uni-kl.de
       
    Tue Jul 29 06:03:21 PDT 2008
    
    
  
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 at sina.com wrote (Mon Jul 28 07:36:26 2008):
>  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 :
>     org.antlr.gunit.Interp treeGrammarFileNameWalker.testSuite
> but,error{
>     java.lang.ClassNOtFoundException:treeGrammarFileNameLexer
>     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
>                            
> cokey
>
> -------------------------------------------------------------------
> ????2G????(http://mail.sina.com.cn/)
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: PGP Digital Signature
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080729/ba05e943/attachment.bin 
    
    
More information about the antlr-interest
mailing list