fix the compound type parser tests

This commit is contained in:
Torsten Ruger
2014-05-27 15:41:34 +03:00
parent 0b07e77782
commit 21a53c6a7f
3 changed files with 13 additions and 13 deletions

View File

@ -10,9 +10,9 @@ module Parser
rule(:integer => simple(:value)) { Ast::IntegerExpression.new(value.to_i) }
rule(:name => simple(:name)) { Ast::NameExpression.new(name.to_s) }
rule(:array => sequence(:array) ) { Ast::ArrayExpression.new(array) }
rule(:array_constant => sequence(:array_constant) ) { Ast::ArrayExpression.new(array_constant) }
rule(:array_element => simple(:array_element)) { array_element }
rule(:hash => sequence(:hash) ) { Ast::HashExpression.new(hash) }
rule(:hash_constant => sequence(:hash_constant) ) { Ast::HashExpression.new(hash_constant) }
rule(:hash_key => simple(:hash_key) , :hash_value => simple(:hash_value)) { Ast::AssociationExpression.new(hash_key,hash_value) }
rule(:hash_pair => simple(:hash_pair) ) { hash_pair }