class Parser::Builders::Default

def regexp_compose(begin_t, parts, end_t, options)

def regexp_compose(begin_t, parts, end_t, options)
  begin
    static_regexp(parts, options)
  rescue RegexpError, Encoding::UndefinedConversionError => e
    diagnostic :error, :invalid_regexp, { :message => e.message },
               loc(begin_t).join(loc(end_t))
  end
  n(:regexp, (parts << options),
    regexp_map(begin_t, end_t, options))
end