class ParseTree

Public Class Methods

new() click to toggle source
# File lib/redparse/replacing/parse_tree.rb, line 21
def initialize

end

Public Instance Methods

parse_tree_for_string(source, filename = '(string)', line = 1, verbose = true) click to toggle source
# File lib/redparse/replacing/parse_tree.rb, line 25
def parse_tree_for_string(source,
                          filename = '(string)', line = 1, verbose = true)
  @parser=RedParse.new(source,filename,line)
  @parser.parse.to_parsetree
end