moved all compile to ast, vm does link and assemble. Getting there

This commit is contained in:
Torsten Ruger
2014-05-05 11:03:43 +03:00
parent 99da6f5be3
commit de66238a9e
8 changed files with 58 additions and 127 deletions

View File

@ -1,4 +1,5 @@
# collection of the simple ones, int and strings and such
module Ast
class IntegerExpression < Expression
@ -29,7 +30,7 @@ module Ast
def compile context
# TODO check if needst to be added?
ObjectReference.new( StringValue.new(string) )
Vm::ObjectReference.new( Vm::StringValue.new(string) )
end
def == other
compare other , [:string]