introducing expressions and constants

not everything statement anymore (as in ruby)
basic statement tests working, rest havoc
This commit is contained in:
Torsten Ruger
2018-03-15 11:24:14 +05:30
parent 163cad456f
commit 78ef1368de
17 changed files with 112 additions and 69 deletions

View File

@ -0,0 +1,21 @@
module Vool
class LocalAssignment < Assignment
# used to collect frame information
def add_local( array )
array << @name
end
def to_mom( method )
if method.args_type.variable_index(@name)
type = :arguments
else
type = :frame
end
statements = @value.to_mom(method)
statements << @value.slot_class.new([:message , type , @name] , @value.slot_definition)
return statements
end
end
end