remove unused code

This commit is contained in:
Torsten Ruger 2015-09-27 11:26:11 +03:00
parent e8bc570d25
commit 97d9d83715

View File

@ -2,21 +2,3 @@ require 'parslet'
require 'parser/salama'
require "ast"
require 'parser/transform'
AST::Node.class_eval do
def [](name)
puts self.inspect
children.each do |child|
if child.is_a?(AST::Node)
#puts child.type
if (child.type == name)
return child.children
end
else
#puts child.class
end
end
nil
end
end