folded fake builder, started adapting tests and added example file

This commit is contained in:
Torsten Ruger
2014-04-24 17:17:17 +03:00
parent 601dc22b2e
commit 305f2380a9
5 changed files with 65 additions and 29 deletions

View File

@ -1,7 +1,7 @@
module Vm
class Number < Struct.new :value
def eval(context, builder)
builder.ldc value
builder.mov "r0" , value
end
end