class Cabbage::LR0(T)

Defined in:

cabbage/lr0.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rule : Cabbage::Rule(T), dot : UInt8, grammar : Cabbage::Grammar(T)) #

[View source]

Instance Method Detail

def advance #

[View source]
def advance=(advance : LR0(T) | Nonterminal) #

[View source]
def beginning_and_not_complete : Bool #

[View source]
def beginning_and_not_complete=(beginning_and_not_complete : Bool) #

[View source]
def beginning_and_not_complete? #

[View source]
def complete : Bool #

[View source]
def complete=(complete : Bool) #

[View source]
def complete? #

[View source]
def dot : UInt8 #

[View source]
def dot=(dot : UInt8) #

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

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

[View source]
def next_symbol #

[View source]
def rule : Rule(T) #

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

[View source]
def symbol #

[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]