Module: EDNGRAMMAR::AppRstring1

Defined in:
lib/parser/edngrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject

XXX ignoring h and b64



2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
# File 'lib/parser/edngrammar.rb', line 2102

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