Module: EDNGRAMMAR::AppString1

Defined in:
lib/parser/edngrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject

XXX ignoring h and b64



1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
# File 'lib/parser/edngrammar.rb', line 1696

def ast                       # XXX ignoring h and b64
  data = sqstr.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_diagnostics(e, elements[1].elements[1])
    raise e
  end
end