[antlr-interest] question about csharp_v1 example
=?gb2312?q?=CB=EF=BC=CD=B8=D5=20Jigang=20(Robert)=20Sun?=
sunjigang1965 at yahoo.com.cn
Tue Jul 25 16:54:28 PDT 2006
Hi,
I am trying the csharp_v1 example coming with v2.7.6. All the files are located in
D:\antlr-2.7.6\examples\csharp\csharp_v1. The content of my dos mode .bat file is --
d:\j2sdk1.4.2_05\bin\java -cp antlr.jar antlr.Tool UnicodeLexerBase.g
d:\j2sdk1.4.2_05\bin\java -cp antlr.jar antlr.Tool CSharpLexerBase.g
d:\j2sdk1.4.2_05\bin\java -cp antlr.jar antlr.Tool CSharpLexer.g
d:\j2sdk1.4.2_05\bin\java -cp antlr.jar antlr.Tool CSharpParser.g
d:\j2sdk1.4.2_05\bin\java -cp antlr.jar antlr.Tool CSharpPrettyPrinter.g
d:\j2sdk1.4.2_05\bin\java -cp antlr.jar antlr.Tool CSharpPreprocessorLexer.g
d:\j2sdk1.4.2_05\bin\java -cp antlr.jar antlr.Tool CSharpPreprocessorHooverLexer.g
The console displays--
D:\antlr-2.7.6\examples\csharp\csharp_v1>d:\j2sdk1.4.2_05\bin\java -cp antlr.jar
antlr.Tool UnicodeLexerBase.g
ANTLR Parser Generator Version 2.7.6 (2005-12-22) 1989-2005
D:\antlr-2.7.6\examples\csharp\csharp_v1>d:\j2sdk1.4.2_05\bin\java -cp antlr.jar
antlr.Tool CSharpLexerBase.g
ANTLR Parser Generator Version 2.7.6 (2005-12-22) 1989-2005
error: grammar UnicodeLexerBase not defined
D:\antlr-2.7.6\examples\csharp\csharp_v1>d:\j2sdk1.4.2_05\bin\java -cp antlr.jar
antlr.Tool CSharpLexer.g
ANTLR Parser Generator Version 2.7.6 (2005-12-22) 1989-2005
error: grammar CSharpLexerBase not defined
D:\antlr-2.7.6\examples\csharp\csharp_v1>d:\j2sdk1.4.2_05\bin\java -cp antlr.jar
antlr.Tool CSharpParser.g
ANTLR Parser Generator Version 2.7.6 (2005-12-22) 1989-2005
panic: Cannot find importVocab file 'CSharpLexerTokenTypes.txt'
D:\antlr-2.7.6\examples\csharp\csharp_v1>d:\j2sdk1.4.2_05\bin\java -cp antlr.jar
antlr.Tool CSharpPrettyPrinter.g
ANTLR Parser Generator Version 2.7.6 (2005-12-22) 1989-2005
panic: Cannot find importVocab file 'CSharpTokenTypes.txt'
D:\antlr-2.7.6\examples\csharp\csharp_v1>d:\j2sdk1.4.2_05\bin\java -cp antlr.jar
antlr.Tool CSharpPreprocessorLexer.g
ANTLR Parser Generator Version 2.7.6 (2005-12-22) 1989-2005
error: grammar CSharpLexerBase not defined
D:\antlr-2.7.6\examples\csharp\csharp_v1>d:\j2sdk1.4.2_05\bin\java -cp antlr.jar
antlr.Tool CSharpPreprocessorHooverLexer.g
ANTLR Parser Generator Version 2.7.6 (2005-12-22) 1989-2005
error: grammar CSharpLexerBase not defined
only first grammar file is processed as sucessfully. Files in
D:\antlr-2.7.6\examples\csharp\csharp_v1 are--
2006-07-26 00:39 <DIR> .
2006-07-26 00:39 <DIR> ..
2005-12-23 17:58 443,432 antlr.jar
2005-12-10 02:23 6,684 ASTNode.cs
2005-12-10 02:23 7,990 ASTNodeFactory.cs
2006-07-26 00:31 <DIR> bin
2005-12-10 02:23 1,985 CodeMaskEnums.cs
2006-07-26 00:21 512 cs.bat
2005-12-10 02:23 24,148 csharp.flex
2005-12-10 02:23 129,352 CSharpFlexLexer.cs
2005-12-10 02:23 19,182 CSharpLexer.g
2005-12-10 02:23 4,901 CSharpLexerBase.g
2006-07-26 00:31 5,128 CSharpParser.csproj
2005-12-10 02:23 50,508 CSharpParser.g
2005-12-10 02:23 8,294 CSharpPreprocessorHooverLexer.g
2005-12-10 02:23 8,700 CSharpPreprocessorLexer.g
2005-12-10 02:23 42,481 CSharpPrettyPrinter.g
2005-12-10 02:23 5,773 csharp_v1.build
2005-12-10 02:23 4,494 CustomHiddenStreamToken.cs
2005-12-10 02:23 1,448 LICENSE.TXT
2005-12-10 02:23 9,748 Main.cs
2006-07-26 00:31 <DIR> obj
2005-12-10 02:23 5,612 README.TXT
2006-02-24 01:07 <DIR> testfiles
2006-02-24 01:07 <DIR> Tools
2006-07-26 00:35 163,028 UnicodeLexerBase.cs
2005-12-10 02:23 22,712 UnicodeLexerBase.g
2006-07-26 00:35 718 UnicodeLexerBaseTokenTypes.cs
2006-07-26 00:35 379 UnicodeLexerBaseTokenTypes.txt
File UnicodeLexerBase.g is in current directory, I do not know what is "error: grammar
UnicodeLexerBase not defined" asking for.
Jigang
___________________________________________________________
ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ
http://cn.mail.yahoo.com/
More information about the antlr-interest
mailing list