struct Parser::LR0::Item
- Parser::LR0::Item
- Parser::IItem
- Struct
- Value
- Object
Defined in:
parser/lr0.crConstructors
Instance Method Summary
- #clone
- #copy_with(production _production = @production, dot _dot = @dot)
- #dot : Int32
-
#inspect(io : IO)
Appends this struct's name and instance variables names and values to the given IO.
- #production : Production
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
Instance Method Detail
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)"