使用 Gold Parser 和 Klimstra 引擎的模板类
我正在使用 GOLD 解析器的“创建骨架程序”中的 Klimstra VB.NET 模板,但生成的模板具有带有 overrides 关键字的方法,并且继承自 TemplateParser
。
我应该创建 TemplateParser类或者有一个工具可以创建它吗?我认为“创建骨架”函数创建了一个模板,我应该继承该模板并为“MustOverride”方法提供实现,但现在我不知道。
我正在遵循一个教程,该教程看起来我们必须使用工具来创建它,但我不确定。我不知道这个教程是否已经过时(2005 年)并且 GOLD 解析器改变了这个机制。这是我正在关注的教程: http://www.codeproject.com/KB/食谱/IntrotoGoldParser.aspx
I'm using Klimstra's VB.NET template from the "Create skeleton program" of the GOLD parser but the resulting template has methods with the overrides keyword and inherits from TemplateParser
..
Am I supposed to create the TemplateParser class or is there a tool to create it? I thought that the "create skeleton" function created a template that I was supposed to inherit and provide implementation to the "MustOverride" methods but now I don't know.
I'm following a tutorial that makes it look like we have to create it using a tool but I'm not sure. I don't know if the tutorial is very outdated (it's dated 2005) and the GOLD parser changed this mechanism. This is the tutorial I'm following: http://www.codeproject.com/KB/recipes/IntrotoGoldParser.aspx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在研究这个主题,您的文章链接确实对我很有帮助。
我发现在文章提供的源文件中有两个扩展名为 .pgt 的文件。这些是黄金代码生成器的模板。您必须将它们复制到您的 GOLD 安装文件夹 ->模板以及在创建框架程序时使用它们。
我希望这有帮助。
I were just looking into this topic a your link to the article really helped me.
I figured out that in the source files provided with the artictle there are two file with extension .pgt. These are templates for GOLD Code generator. Yout have to copy them into your GOLD installation folder -> Templates and to use them both when you are creating the skeleton program.
I hope this is helpful.