集成到VS2008中时出现antlr c#错误 [英] antlr c# errors when integrating into VS2008
问题描述
我正在以下位置关注本教程: http://www.antlr .org/wiki/pages/viewpage.action?pageId = 557075
I am following the tutorial at: 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.
谢谢!
推荐答案
如果使用的是编译的运行时dll,请使用ANTLRWorks 1.4生成代码.否则,如果您使用最新版本的ANTLRWorks,我相信您需要获取最新版本的运行时并进行编译.
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.
这篇关于集成到VS2008中时出现antlr c#错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!