class Cabbage::Set(T)

Defined in:

cabbage/set.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(grammar : Cabbage::Grammar(T), position : Int32) #

[View source]

Instance Method Detail

def add_item(tag, start) #

[View source]
def append_item(tag, start) #

[View source]
def each_wanted_for(tag, &) #

[View source]
def grammar : Grammar(T) #

[View source]
def grammar=(grammar : Grammar(T)) #

[View source]
def has_item?(key) #

[View source]
def index : Hash(Tuple(LR0(T) | GrammarSymbol, Int32), Item(T)) #

[View source]
def index=(index : Hash(Tuple(LR0(T) | GrammarSymbol, Int32), Item(T))) #

[View source]
def item(tag, start) #

[View source]
def items : Array(Item(T)) #

[View source]
def items=(items : Array(Item(T))) #

[View source]
def position : Int32 #

[View source]
def position=(position : Int32) #

[View source]
def predict(sym) #

[View source]
def process #

[View source]
def process_range(start, stop) #

[View source]
def register_item(tag_pair, item) #

[View source]
def scan(sym) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def wants : Hash(GrammarSymbol, Array(Item(T))) #

[View source]
def wants=(wants : Hash(GrammarSymbol, Array(Item(T)))) #

[View source]