[antlr-interest] Grammar inheritance command line

Scott Stanchfield scott at javadude.com
Wed Jun 7 06:15:13 PDT 2006


Put double quotes around the names that contain spaces; Java interprets
spaces as meaning argument separators.
-- Scott


  _____  

From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.
org] On Behalf Of ??? Jigang (Robert) Sun
Sent: Wednesday, June 07, 2006 9:08 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Grammar inheritance command line


Hi,
 
Normally I use command  "java -cp antlr.jar antlr.Tool lex.g" to produce
lexer( antlr.jar and lex.g are in same directory). 
 
Now I have a super grammar in file PreLex.g(located in the same directory)
for grammar in lex.g to inherit. I tried several ways, such as 
 
java -cp antlr.jar antlr.Tool lex.g PreLex.g
 
java -cp antlr.jar antlr.Tool lex.g -glib H:\Visual Studio
2005\Projects\Clean\Clean\PreLex.g
 
java -cp antlr.jar antlr.Tool H:\Visual Studio
2005\Projects\Clean\Clean\lex.g  ; H:\Visual Studio
2005\Projects\Clean\Clean\PreLex.g
 
none of them suceeded.
 
Robert

 

__________________________________________________
¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä?
http://cn.mail.yahoo.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060607/f3530f67/attachment.html


More information about the antlr-interest mailing list