Class: IV::Phonic::AST::Expression

Inherits:
Node
  • Object
show all
Defined in:
lib/iv/phonic/ast.rb

Class Method Summary collapse

Methods inherited from Node

#begin_position, #end_position, #initialize, #program, #source

Constructor Details

This class inherits a constructor from IV::Phonic::AST::Node

Class Method Details

.as(parent, expr) ⇒ Object



303
304
305
# File 'lib/iv/phonic/ast.rb', line 303

def self.as parent, expr
  return ExpressionType2Class[expr[:type]].new parent, expr
end