class

Crowbar::GrammarDefinition::Production

Inherits Reference < Object

Constructors

new(tokens : Iterable(String | Symbol), weight : Float64 = 1.0)
Source

Instance methods

terminal?

Returns true if all tokens are string literals (terminal)

Source
tokens
Source
weight
Source
weight=(weight : Float64)
Source