Module: EDNGRAMMAR::AppString1

Defined in:
lib/parser/edngrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject

XXX ignoring h and b64



1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
# File 'lib/parser/edngrammar.rb', line 1975

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