hurra, a first test. looks a lot.... but lets not spoil th efeeling

This commit is contained in:
Torsten Ruger
2014-06-26 18:39:02 +03:00
parent 525f9d45c5
commit 16ceb2a60d
13 changed files with 94 additions and 87 deletions

View File

@ -4,7 +4,7 @@ module Ast
class IntegerExpression < Expression
# attr_reader :value
def compile context
def compile binding
Virtual::IntegerConstant.new value
end
end

View File

@ -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