class Yadriggy::Dots

Range.

Public Class Methods

new(sexp) click to toggle source
# File lib/yadriggy/ast.rb, line 680
def initialize(sexp)
  @left = to_node(sexp[1])
  @op = if sexp[0] == :dot2 then :'..' else :'...' end
  @right = to_node(sexp[2])
  add_child(@left)
  add_child(@right)
end
tags() click to toggle source
# File lib/yadriggy/ast.rb, line 678
def self.tags() [:dot2, :dot3] end

Public Instance Methods

accept(evaluator) click to toggle source

A method for Visitor pattern. @param [Eval] evaluator the visitor of Visitor pattern. @return [void]

# File lib/yadriggy/ast.rb, line 691
def accept(evaluator)
  evaluator.dots(self)
end