class Dentaku::AST::Operation
Attributes
left[R]
right[R]
Public Class Methods
max_param_count()
click to toggle source
# File lib/dentaku/ast/operation.rb, line 12 def self.max_param_count arity end
min_param_count()
click to toggle source
# File lib/dentaku/ast/operation.rb, line 8 def self.min_param_count arity end
new(left, right)
click to toggle source
# File lib/dentaku/ast/operation.rb, line 16 def initialize(left, right) @left = left @right = right end
right_associative?()
click to toggle source
# File lib/dentaku/ast/operation.rb, line 25 def self.right_associative? false end
Public Instance Methods
accept(visitor)
click to toggle source
# File lib/dentaku/ast/operation.rb, line 29 def accept(visitor) visitor.visit_operation(self) end
dependencies(context = {})
click to toggle source
# File lib/dentaku/ast/operation.rb, line 21 def dependencies(context = {}) (left.dependencies(context) + right.dependencies(context)).uniq end
display_operator()
click to toggle source
# File lib/dentaku/ast/operation.rb, line 33 def display_operator operator.to_s end
Also aliased as: to_s