Module: EDNGRAMMAR::AppRstring1

Defined in:
lib/parser/edngrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject

XXX ignoring h and b64



1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
# File 'lib/parser/edngrammar.rb', line 1823

def ast                       # XXX ignoring h and b64
  data = rawstring.ast.force_encoding(Encoding::UTF_8) # XXX undo .b
  app = app_prefix.text_value
  begin
    ::EDNGRAMMAR::APPS[app].decode(app, data)
  rescue CBOR_DIAG::AppParseError => e
    app_parser_level1_raw_diagnostics(e, rawstring.rawcontent)
    raise e
  end
end