crystal says Hello.
This commit is contained in:
@@ -29,8 +29,9 @@ module Ast
|
||||
end
|
||||
|
||||
def compile context
|
||||
# TODO check if needst to be added?
|
||||
Vm::ObjectReference.new( Vm::StringValue.new(string) )
|
||||
value = Vm::StringLiteral.new(string)
|
||||
context.program.add_object value
|
||||
value
|
||||
end
|
||||
def == other
|
||||
compare other , [:string]
|
||||
|
@@ -12,8 +12,8 @@ module Ast
|
||||
fun = Vm::FunctionCall.new( name , args.collect{ |a| a.compile(context) } )
|
||||
fun.assign_function context
|
||||
fun.load_args
|
||||
#puts "funcall #{self.inspect}"
|
||||
fun.do_call
|
||||
fun
|
||||
end
|
||||
|
||||
def == other
|
||||
|
Reference in New Issue
Block a user