class Vertigo::AstNode
Attributes
label[RW]
pos[RW]
Public Instance Methods
accept(visitor, arg=nil)
click to toggle source
# File lib/vertigo/ast_vertigo_rkgen.rb, line 9 def accept(visitor, arg=nil) name = self.class.name.split(/::/).last visitor.send("visit#{name}".to_sym, self ,arg) # Metaprograming ! end
str()
click to toggle source
# File lib/vertigo/ast_vertigo_rkgen.rb, line 14 def str ppr=PrettyPrinter.new self.accept(ppr) end