module Sexpr module Grammar module Parsing def default_parse_options {} end def parse(input, options = nil) options = default_parse_options.merge(options || {}) parser!.parse(input, options) end private def parser! unless p = parser raise NoParserError, "No parser set.", caller end p end end # module Parsing end # module Grammar end # module Sexpr