Rule
alpaca.Rule
Represents a grammar rule in the parser.
A rule defines how a non-terminal symbol can be parsed by specifying one or more productions. Each production maps a pattern of symbols to a result value.
Rules are created using the rule function and can be used in pattern matching within parser productions.
Type parameters
- R
-
the type of value produced when this rule is matched
Attributes
- Experimental
- true
- Source
- parser.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article
