struct Parser::LR0::Item

Defined in:

parser/lr0.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Parser::IItem

body : Array(Node) body, body_with_dot : Array(Node | Dot) body_with_dot, dot : Int32 dot, initialize initialize, production : Production production, right_of_dot : Node right_of_dot, right_of_dot? : Node | Nil right_of_dot?

Constructor methods inherited from struct Parser::IItem

new new

Constructor Detail

def self.new(production : Production, dot : Int32) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(production _production = @production, dot _dot = @dot) #

[View source]
def dot : Int32 #

def inspect(io : IO) #
Description copied from struct Struct

Appends this struct's name and instance variables names and values to the given IO.

struct Point
  def initialize(@x : Int32, @y : Int32)
  end
end

p1 = Point.new 1, 2
p1.to_s    # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"

[View source]
def production : Production #