leave assignee as name_expression in assignment, fix tests accordingly

This commit is contained in:
Torsten Ruger
2014-05-10 19:11:32 +03:00
parent 47f1608685
commit 6378209f33
7 changed files with 12 additions and 11 deletions

View File

@ -39,7 +39,7 @@ module Parser
end
rule(:asignee => simple(:left) , :asigned => simple(:right) ) do
Ast::AssignmentExpression.new(left.name, right )
Ast::AssignmentExpression.new(left , right )
end
#shortcut to get the ast tree for a given string
# optional second arguement specifies a rule that will be parsed (mainly for testing)