如何配置 Visual Studio 2010 来构建 C++ 的 ANTLR 语法?项目?
VS2010 无法识别随发行版提供的 .rules 文件,我真的很想避免编写整个 MSBuild 任务以及所有这些本来应该是一个简单的工具。
目前,我一直在使用预构建事件并手动创建命令行......但是当需要担心不止一种语法时,这种情况很糟糕。
编辑:因为唯一的答案是我自己的,而且我不想成为一个妓女,所以我制作了这个 CW。
The .rules files provided with the distribution aren't recognized by VS2010, and I'd really like to avoid having to write a whole MSBuild task and all that for what should be a simple tool.
Currently I've been using the pre-build event and making the commandline manually... but that kind of sucks when there's more than one grammar to worry about.
EDIT: Since the only answer is my own, and I don't want to be a point whore, I've made this CW.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我对此没有答案,所以我阅读了一大堆与 MSBuild 相关的内容,并为其编写了自己的蹩脚小任务: http://antlrmsbuild.codeplex.com/ 。希望这对其他人有帮助。
Well, I got no answers to this, so I read up on a whole bunch of MSBuild related stuff and wrote my own crappy little task for it: http://antlrmsbuild.codeplex.com/ . Hope this helps someone else.