On the relation between context-free grammars and parsing expression grammars

dc.contributor.authorMedeiros, Sérgio Queiroz de
dc.contributor.authorMascarenhas, Fabio
dc.contributor.authorRoberto Ierusalimschy, Natural semantics
dc.date.accessioned2020-12-07T20:07:42Z
dc.date.available2020-12-07T20:07:42Z
dc.date.issued2014-09-01
dc.description.resumoContext-Free Grammars (CFGs) and Parsing Expression Grammars (PEGs) have several similarities and a few differences in both their syntax and semantics, but they are usually presented through formalisms that hinder a proper comparison. In this paper we present a new formalism for CFGs that highlights the similarities and differences between them. The new formalism borrows from PEGs the use of parsing expressions and the recognition-based semantics. We show how one way of removing non-determinism from this formalism yields a formalism with the semantics of PEGs. We also prove, based on these new formalisms, how LL(1) grammars define the same language whether interpreted as CFGs or as PEGs, and also show how strong-LL(k), right-linear, and LL-regular grammars have simple language-preserving translations from CFGs to PEGs. Once these classes of CFGs can be automatically translated to equivalent PEGs, we can reuse classic top-down grammars in PEG-based toolspt_BR
dc.identifier.citationMASCARENHAS, Fabio; MEDEIROS, Sérgio; IERUSALIMSCHY, Roberto. On the relation between context-free grammars and parsing expression grammars. Science Of Computer Programming, [S.L.], v. 89, p. 235-250, set. 2014. Disponível em: https://www.sciencedirect.com/science/article/pii/S0167642314000276?via%3Dihub. Acesso em: 06 out. 2020. http://dx.doi.org/10.1016/j.scico.2014.01.012.pt_BR
dc.identifier.doi10.1016/j.scico.2014.01.012
dc.identifier.issn0167-6423
dc.identifier.urihttps://repositorio.ufrn.br/handle/123456789/30875
dc.languageenpt_BR
dc.publisherElsevierpt_BR
dc.rightsAttribution 3.0 Brazil*
dc.rights.urihttp://creativecommons.org/licenses/by/3.0/br/*
dc.subjectContext-free grammarspt_BR
dc.subjectParsing expression grammarspt_BR
dc.subjectLL(1)pt_BR
dc.subjectLL(k)pt_BR
dc.subjectNatural semanticspt_BR
dc.titleOn the relation between context-free grammars and parsing expression grammarspt_BR
dc.typearticlept_BR

Arquivos

Pacote Original

Agora exibindo 1 - 1 de 1
Carregando...
Imagem de Miniatura
Nome:
OnRelationBetween_MEDEIROS_2014.pdf
Tamanho:
326.64 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