Add a rule to the grammar. If the rule already exists, but the implementation differs, an error will be thrown.
Delete a grammar rule by its name.
Merge this grammar GeneratorBuilder with another. It is best to merge the bigger grammar with the smaller one. If the two builders both have a grammar rule with the same name, no error will be thrown case they map to the same ruledef object. If they map to a different object, an error will be thrown. To fix this problem, the overridingRules array should contain a rule with the same conflicting name, this rule implementation will be used.
Change the implementation of an existing generator rule.
Static
createCreate a GeneratorBuilder from some initial grammar rules or an existing GeneratorBuilder. If a GeneratorBuilder is provided, a new copy will be created.
Create a GeneratorBuilder from some initial grammar rules or an existing GeneratorBuilder. If a GeneratorBuilder is provided, a new copy will be created.
Add a rule to the grammar. Will raise a typescript error if the rule already exists in the grammar.