Torsten Rüger
dced6b12e6
the "old" way of generating compilers is now obsolete we can use ruby code with mom macros to achieve the same Three step wip remove old builtin fix tests (including adding necessary methods) fixup and inclusion of builtin code to parfait
11 lines
275 B
Ruby
11 lines
275 B
Ruby
module Mom
|
|
class MethodMissing < Macro
|
|
def to_risc(compiler)
|
|
builder = compiler.builder(compiler.source)
|
|
builder.prepare_int_return # makes integer_tmp variable as return
|
|
Builtin.emit_syscall( builder , :exit )
|
|
return compiler
|
|
end
|
|
end
|
|
end
|