had forgotten calls on instance variables. corrected + tests

This commit is contained in:
Torsten Ruger
2014-06-01 14:46:16 +03:00
parent 9ea0acf2e3
commit 1d10c2c03e
3 changed files with 21 additions and 4 deletions

View File

@ -40,6 +40,10 @@ module Ast
def initialize name
super( :_get_instance_variable , [StringExpression.new(name)] )
end
def inspect
self.class.name + ".new(" + args[0].string.inspect + ")"
end
end
end

View File

@ -9,7 +9,7 @@ module Parser
space? >> right_parenthesis
}
rule(:call_site) { ((module_name|name).as(:receiver) >> str(".")).maybe >> #possibly qualified
rule(:call_site) { ((module_name|instance_variable|name).as(:receiver) >> str(".")).maybe >> #possibly qualified
name.as(:call_site) >> argument_list >> comment.maybe}