class Cfoo::ElParser

Public Class Methods

parse(string) click to toggle source
# File lib/cfoo/el_parser.rb, line 8
def self.parse(string)
    return string if string.empty?

    parser = ElParser.new
    transform = ElTransform.new

    tree = parser.parse(string)
    transform.apply(tree)
#rescue Parslet::ParseFailed => failure
#    #TODO: handle this properly
end