简体   繁体   English

使用Gold Parser和Klimstra引擎的模板类

[英]Template class using Gold Parser and the Klimstra engine

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 .. 我正在从GOLD解析器的“创建骨架程序”中使用Klimstra的VB.NET模板,但是生成的模板具有带有overrides关键字的方法,并且是从TemplateParser继承的。

Am I supposed to create the TemplateParser class or is there a tool to create it? 我应该创建TemplateParser类还是有创建它的工具? 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. 我以为“创建骨架”功能创建了一个模板,该模板应该继承并为“ MustOverride”方法提供实现,但现在我不知道。

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. 我不知道该教程是否已经过时(日期为2005年),并且GOLD解析器更改了此机制。 This is the tutorial I'm following: http://www.codeproject.com/KB/recipes/IntrotoGoldParser.aspx 这是我正在关注的教程: http : //www.codeproject.com/KB/recipes/IntrotoGoldParser.aspx

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. 我发现在artictle提供的源文件中,有两个扩展名为.pgt的文件。 These are templates for GOLD Code generator. 这些是GOLD代码生成器的模板。 Yout have to copy them into your GOLD installation folder -> Templates and to use them both when you are creating the skeleton program. 您必须将它们复制到GOLD安装文件夹->模板中,并在创建框架程序时同时使用它们。

I hope this is helpful. 我希望这是有帮助的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM