Compilation error when building with AST option

Mar 24, 2011 at 2:15 PM

Hi, I am getting the following errors when I try to compile with the AST option set:

public class compilation_unit_return : ParserRuleReturnScope<IToken>, IAstRuleReturnScope<object>

ParserRuleReturnScope doesn't have a generic argument.
IAstRuleReturnScope doesn't exist.

[GrammarRule("T__125")]

The class GrammarRuleAttribute doesn't exist.

Can you point me in the right direction?

Thanks,

Gustavo

Coordinator
Mar 25, 2011 at 1:08 AM

GrammarRuleAttribute is in the latest C# runtime.  That's why it's checked into the source tree (or you can get from the Antlr.org source tree).  Grab the latest version from the [Source Code] tab.

I'll put a release out one day with the latest.....