[antlr-interest] ASTLabelType C# Problem

DJB MASTER DJBall05 at hotmail.co.uk
Sun Jul 10 15:17:19 PDT 2011


I've generated the code with AntlrWorks 1.4.2. and also used the antlr tool,
both give the same compile errors.

The reason that 'statement_return' doesn't exist in your version, is i've
just renamed the rules in the grammar from 'stat' to 'statement', no big
deal that should effect the generated code. The parser generates a
CommonTree AST just fine.

This isn't specific to this grammar. I wrote another grammar, which again
generates an AST fine using CommonTree, but when I add ASTLabelType to
change the node type, I get these errors.

--
View this message in context: http://antlr.1301665.n2.nabble.com/ASTLabelType-C-Problem-tp6567453p6568771.html
Sent from the ANTLR mailing list archive at Nabble.com.


More information about the antlr-interest mailing list