集成到 VS2008 时的 antlr c# 错误 [英] antlr c# errors when integrating into VS2008
问题描述
我正在关注以下教程:http://www.antlr.org/wiki/pages/viewpage.action?pageId=557075
当我到达第 11 步时,使用 VS 进行编译,我得到以下信息:
错误找不到类型或命名空间名称AstParserRuleReturnScope"
错误找不到类型或命名空间名称GrammarRule"
错误找不到类型或命名空间名称GrammarRuleAttribute"
等
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.
谢谢!
推荐答案
您很可能只需要更新版本的 ANTLR .NET 运行时.最新版本可在以下位置找到:http://www.antlr.org/wiki/display/ANTLR3/Antlr3CSharpReleases
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 3.4.1 版一直在为我使用 ANTLRWorks 1.4.3 解析器 &词法分析器;在升级运行时之前,我遇到了和你一样的错误.
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.
这篇关于集成到 VS2008 时的 antlr c# 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!