Builder
class Builder
A DSL builder for constructing Grammar instances.
Builder provides methods to define lexemes and rules that comprise a Grammar. Use lexeme to register lexeme definitions and rule to define production rules. Once all components are defined, call build to construct the final Grammar instance.
Typically accessed through the Grammar companion object's invoke operators rather than constructed directly.
Functions
Link copied to clipboard
Link copied to clipboard
Defines a production rule with the given name using the DSL provided by RuleBuilder.