[antlr-interest] ANTLR 3.1b1 released!
Andreas Bartho
andreas.bartho at inf.tu-dresden.de
Thu May 22 02:39:04 PDT 2008
Hi Terence,
> Interesting. I wonder if this scene only during debugging or when using
> a nonstandard constructor (i.e., a constructor specified by the user for
> the recognizer).
I'm using the Java target.
I have not specified a new constructor and I'm not in debugging mode.
This is how I invoke the parser:
CSharpLexer lexer = new CSharpLexer(new
ANTLRReaderStream(getCodeFileReader(codeFile)));
CommonTokenStream tokens = new CommonTokenStream(lexer);
CSharpParser parser = new CSharpParser(tokens);
ParserRuleReturnScope ret = parser.compilationunit();
The grammar can be found here:
http://deftproject.svn.sourceforge.net/viewvc/*checkout*/deftproject/deft/trunk/org.deft.antlrcsharp/CSharp.g?revision=236
If it helps I could try to strip the grammar down.
Andreas
More information about the antlr-interest
mailing list