开发者

antlr c# errors when integrating into VS2008

I am following the tutorial at: http://www.antlr.org/wiki/pages/viewpage.action?pageId=557075

When I get to step 11, compile with VS I am getting the following:

Error The type or namespace name 'AstParserRuleReturnScope' could not be found

Error The type or namespace name 'GrammarRule' could not be found

Error The type or namespace name 'GrammarRuleAttribute' could not be开发者_如何学运维 found

etc.

Any tips from anyone? There is little to no documentation to help me here.

Thanks!


Use ANTLRWorks 1.4 to generate the code if you are using the compiled runtime dlls. Otherwise, if you use the latest version of ANTLRWorks I believe you need to get the latest version of the runtime and compile it.


You most likely just need a more recent version of the ANTLR .NET runtime. The latest version can be found at: http://www.antlr.org/wiki/display/ANTLR3/Antlr3CSharpReleases

ANTLR version 3.4.1 has been working for me with ANTLRWorks 1.4.3 parsers & lexers; before upgrading the runtime, I was getting the same errors as you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜