more expressions compile

This commit is contained in:
Torsten Ruger
2014-05-10 10:58:25 +03:00
parent 8e6297dcff
commit 7341586d15
3 changed files with 28 additions and 0 deletions

View File

@ -7,6 +7,9 @@ module Ast
def initialize val
@value = val
end
def compile context
Vm::Signed.new value
end
def == other
compare other , [:value]
end