class Ktistec::Node
- Ktistec::Node
- Reference
- Object
Overview
A node in the parse tree.
Direct Known Subclasses
Defined in:
utils/parser.crConstructors
-
.new(id : String, lbp : Int32)
Creates a node.
Instance Method Summary
-
#clone
Clones the node.
- #id : String
- #lbp : Int32
-
#led(parser : Parser, left : Node) : self
Parses expression to the right.
-
#nud(parser : Parser) : self
Parses expression to the right.
-
#std(parser : Parser) : self
Parses statement.
- #token : Token
- #token? : Token | Nil
Constructor Detail
Instance Method Detail
Parses expression to the right. Captures expression to the left.