Permalink
Browse files

Fix up AST visitor for binary operations

  • Loading branch information...
1 parent 14d279d commit d0321bcc7264b0b3399db300343aa625eeb91032 @wycats wycats committed Sep 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sparta/ast_visitor.rb
View
2 lib/sparta/ast_visitor.rb
@@ -30,7 +30,7 @@ def say_status(status, message, log_status=true)
def binary(name, o)
with_padding(name) do
with_padding("@left") { o.left.accept(self) }
- with_padding("@right") { o.value.accept(self) }
+ with_padding("@value") { o.value.accept(self) }
end
end

0 comments on commit d0321bc

Please sign in to comment.