Module: Finitio::Syntax::HighOrderVars

Includes:
Node
Defined in:
lib/finitio/syntax/type/high_order_vars.rb

Instance Method Summary collapse

Methods included from Node

included, #metadata, #resolve_ruby_const, #unique_names!

Instance Method Details

#compile(system) ⇒ Object



6
7
8
# File 'lib/finitio/syntax/type/high_order_vars.rb', line 6

def compile(system)
  captures[:type_name].map{|c| c.to_s }
end

#to_ast(var_name) ⇒ Object



10
11
12
# File 'lib/finitio/syntax/type/high_order_vars.rb', line 10

def to_ast(var_name)
  [ :high_order_vars, captures[:type_name].map{|c| c.to_s } ]
end