Error reporting in Parsing Expression Grammars

dc.contributor.authorMedeiros, Sérgio Queiroz de
dc.contributor.authorMaidl, André Murbach
dc.contributor.authorMascarenhas, Fabio
dc.contributor.authorIerusalimschy, Roberto
dc.date.accessioned2020-12-07T20:01:10Z
dc.date.available2020-12-07T20:01:10Z
dc.date.issued2016-12-15
dc.description.resumoParsing Expression Grammars (PEGs) describe top-down parsers. Unfortunately, the error-reporting techniques used in conventional top-down parsers do not directly apply to parsers based on Parsin Expression Grammars (PEGs), so they have to be somehow simulated. While the PEG formalism has no account of semantic actions, actual PEG implementations add them, and we show how to simula-te an error-reporting heuristic through these semantic actions. We also propose a complementary error reporting strategy that may lead to better error messages: labeled failures. This approach is inspired by exception handling of programming languages, and lets a PEG define different kinds of failure, with each ordered choice operator specifying which kinds it catches. Labeled failures give a way to annotate grammars for better error reporting, to express some of the error reporting strategies used by deterministic parser combinators, and to encode predictive top-down parsing in a PEG. © 2016 Elsevier B.V. All rights reserved.pt_BR
dc.identifier.citationMAIDL, André Murbach; MASCARENHAS, Fabio; MEDEIROS, Sérgio; IERUSALIMSCHY, Roberto. Error reporting in Parsing Expression Grammars. Science Of Computer Programming, [S.L.], v. 132, p. 129-140, dez. 2016. Disponível em: https://www.sciencedirect.com/science/article/abs/pii/S0167642316301046?via%3Dihub. Acesso em: 06 out. 2020. http://dx.doi.org/10.1016/j.scico.2016.08.004.pt_BR
dc.identifier.doi10.1016/j.scico.2016.08.004
dc.identifier.issn0167-6423
dc.identifier.urihttps://repositorio.ufrn.br/handle/123456789/30874
dc.languageenpt_BR
dc.publisherElsevierpt_BR
dc.rightsAttribution 3.0 Brazil*
dc.rights.urihttp://creativecommons.org/licenses/by/3.0/br/*
dc.subjectParsingpt_BR
dc.subjectError reportingpt_BR
dc.subjectParsing expression grammarspt_BR
dc.subjectPackrat parsingpt_BR
dc.subjectParser combinatorspt_BR
dc.titleError reporting in Parsing Expression Grammarspt_BR
dc.typearticlept_BR

Arquivos

Pacote Original

Agora exibindo 1 - 1 de 1
Carregando...
Imagem de Miniatura
Nome:
ErrorReporting_MEDERIROS_2016.pdf
Tamanho:
398.72 KB
Formato:
Adobe Portable Document Format
Carregando...
Imagem de Miniatura
Baixar

Licença do Pacote

Agora exibindo 1 - 1 de 1
Nenhuma Miniatura disponível
Nome:
license.txt
Tamanho:
1.45 KB
Formato:
Item-specific license agreed upon to submission
Nenhuma Miniatura disponível
Baixar