Class: Emfrp::PrimTypeDef

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

Instance Method Summary collapse

Instance Method Details

#codegen(ct) ⇒ Object



234
235
236
# File 'lib/emfrp/compile/c/syntax_codegen.rb', line 234

def codegen(ct)
  # do nothing
end

#ref_name(ct) ⇒ Object



238
239
240
241
242
243
244
# File 'lib/emfrp/compile/c/syntax_codegen.rb', line 238

def ref_name(ct)
  ctype_foreign = self[:foreigns].find{|x| x[:language][:desc] == "c"}
  unless ctype_foreign
    raise "compile error: foreign for c is undefined in #{self[:name][:desc]}"
  end
  ctype_foreign[:desc]
end