集成到VS2008中时出现antlr c#错误 [英] antlr c# errors when integrating into VS2008

查看:79
本文介绍了集成到VS2008中时出现antlr c#错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在以下位置关注本教程: 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆