class Predicator::AST::Node
Attributes
left[RW]
Public Class Methods
new(left)
click to toggle source
# File lib/predicator/ast.rb, line 8 def initialize left @left = left end
Public Instance Methods
each(&block)
click to toggle source
# File lib/predicator/ast.rb, line 12 def each &block Visitors::Each.new(block).accept self end
literal?()
click to toggle source
# File lib/predicator/ast.rb, line 33 def literal?; false; end
to_dot()
click to toggle source
# File lib/predicator/ast.rb, line 16 def to_dot Visitors::Dot.new.accept self end
to_instructions()
click to toggle source
# File lib/predicator/ast.rb, line 20 def to_instructions Visitors::Instructions.new.accept self end
to_s()
click to toggle source
# File lib/predicator/ast.rb, line 24 def to_s Visitors::String.new.accept self end
type()
click to toggle source
# File lib/predicator/ast.rb, line 28 def type raise NotImplementedError end
variable?()
click to toggle source
# File lib/predicator/ast.rb, line 32 def variable?; false; end