Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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