hurra, a first test. looks a lot.... but lets not spoil th efeeling
This commit is contained in:
@ -4,7 +4,7 @@ module Ast
|
||||
|
||||
class IntegerExpression < Expression
|
||||
# attr_reader :value
|
||||
def compile context
|
||||
def compile binding
|
||||
Virtual::IntegerConstant.new value
|
||||
end
|
||||
end
|
||||
|
@ -2,9 +2,7 @@ module Ast
|
||||
class ExpressionList < Expression
|
||||
# attr_reader :expressions
|
||||
def compile binding
|
||||
expressions.each do |part|
|
||||
expr = part.compile( binding )
|
||||
end
|
||||
expressions.collect { |part| part.compile( binding ) }
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user