class Cabbage::DSL(T)

Defined in:

cabbage/dsl.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.define(&) #

[View source]

Instance Method Detail

def finish! #

[View source]
def rules : Array(Rule(T)) #

[View source]
def rules=(rules : Array(Rule(T))) #

[View source]
def start(s : GrammarSymbol) #

[View source]
def start_symbol : GrammarSymbol | Nil #

[View source]
def start_symbol=(start_symbol : GrammarSymbol | Nil) #

[View source]
def terminal(&block : Cabbage::Terminal -> T) #

[View source]
def terminal_action : Cabbage::Terminal -> T | Nil #

[View source]
def terminal_action=(terminal_action : Cabbage::Terminal -> T | Nil) #

[View source]

Macro Detail

macro rule(lhs, *rhs) #

[View source]