class of grammar 文法类别 ; [计] 文法类
Create a derived class inherited from the predefined grammar class.
创建一个从预定义grammar类继承而来的派生类。
The result is still an AST, but the parent class does most of the work for you. My grammar class looks like this
结果还是 AST,但父类会为您执行大部分工作。
The grammar class is a template class that is parameterized by its derived class DerivedT and the context class ContextT. The declaration for the grammar class is as follows.
grammar类是一个模板类,被其派生类DerivedT和上下文类ContextT参数化。
应用推荐