2014-05-12 20:36:38 +02:00
|
|
|
module Ast
|
|
|
|
|
|
|
|
class ArrayExpression < Expression
|
2014-06-04 21:03:45 +02:00
|
|
|
# attr_reader :values
|
2014-05-12 20:36:38 +02:00
|
|
|
def compile context
|
|
|
|
to.do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class AssociationExpression < Expression
|
2014-06-04 21:03:45 +02:00
|
|
|
# attr_reader :key , :value
|
2014-05-12 20:36:38 +02:00
|
|
|
def compile context
|
|
|
|
to.do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class HashExpression < ArrayExpression
|
|
|
|
def compile context
|
|
|
|
to.do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|