Class: Emfrp::FuncCall

Inherits:
Object
  • Object
show all
Defined in:
lib/emfrp/compile/c/syntax_exp_codegen.rb

Instance Method Summary collapse

Instance Method Details

#codegen(ct, stmts) ⇒ Object



5
6
7
8
# File 'lib/emfrp/compile/c/syntax_exp_codegen.rb', line 5

def codegen(ct, stmts)
  name = ct.func_name(self[:name][:desc], self[:typing], self[:args].map{|x| x[:typing]})
  "#{name}(#{self[:args].map{|x| x.codegen(ct, stmts)}.join(", ")})"
end