Users should extend this class and define their grammar rules as Rule instances. The parser uses an LR parsing algorithm with automatic parse table generation.
Type parameters
Ctx
the global context type, defaults to EmptyGlobalCtx
Provides compile-time access to named productions for use in conflict resolution definitions.
Provides compile-time access to named productions for use in conflict resolution definitions.
This method allows you to reference productions by their names as defined in your parser. It is typically used when specifying conflict resolutions, enabling you to refer to productions in a type-safe and compile-time-checked manner.
Example usage:
override val resolutions = Set(
production.plus.after(production.times)
)
Attributes
Note
This is a compile-time only feature and should be used within parser definitions.