class Crowbar::GrammarDefinition::Production

Defined in:

crowbar/dsl/grammar_builder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(tokens : Iterable(String | Symbol), weight : Float64 = 1.0) #

Instance Method Detail

def terminal? : Bool #

Returns true if all tokens are string literals (terminal)


def tokens : Array(String | Symbol) #

def weight : Float64 #

def weight=(weight : Float64) #