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