From: Michel Son Date: 2008-06-11T04:44:55+09:00 Subject: Re: AST for ruby code Radosław Bułat wrote: > You are trying to parse it line by line but it won't work in that way. > Just parse whole file: > > sexp = RubyParser.new.parse(File.read("readline.rb")) > > -- > Rados�aw Bu�at > > http://radarek.jogger.pl - m�j blog ------------------ One more help from you that this code is working perfectly on Ruby IDE, can u tell me how does it works on Ruby Rail. Because when i run it using ruby on rails, it is not displaying anything and also no errors. Even I have properly include rubygems and ruby_parser. Even Rails server stops working <% require "rubygems" require "ruby_parser" sexpfaulty1 = RubyParser.new.parse(File.read("faulty_0.rb")) %> <%= sexpfaulty1 %> -- Posted via http://www.ruby-forum.com/.