Skip to content
Browse files

moved root AST node to usage of the node

  • Loading branch information...
1 parent 218c9b1 commit 415154fdb78b894ddb122d831c3e7446f88af6db @komax committed Jul 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/ast
View
4 bin/ast
@@ -109,8 +109,6 @@ def print_passes_on(scope, passes)
end
end
-root = JRuby.parse(options[:expression])
-
if options[:print_source]
puts "Source:"
puts options[:expression]
@@ -164,6 +162,8 @@ module DotGraph
end
end
+root = JRuby.parse(options[:expression])
+
if options[:print_ast]
if options[:dot_format]
DotGraph.print_graph(root)

0 comments on commit 415154f

Please sign in to comment.
Something went wrong with that request. Please try again.