class Ktistec::Node

Overview

A node in the parse tree.

Direct Known Subclasses

Defined in:

utils/parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, lbp : Int32) #

Creates a node.


[View source]

Instance Method Detail

def clone #

Clones the node.


[View source]
def id : String #

[View source]
def lbp : Int32 #

[View source]
def led(parser : Parser, left : Node) : self #

Parses expression to the right. Captures expression to the left.


[View source]
def nud(parser : Parser) : self #

Parses expression to the right.


[View source]
def std(parser : Parser) : self #

Parses statement.


[View source]
def token : Token #

[View source]
def token? : Token | Nil #

[View source]