The formalization and implementation of Adaptable Parsing Expression Grammars.

dc.contributor.authorReis, Leonardo Vieira dos Santos
dc.contributor.authorBigonha, Roberto da Silva
dc.contributor.authorIorio, Vladimir Oliveira Di
dc.contributor.authorAmorim, Luis Eduardo de Souza
dc.date.accessioned2015-01-28T19:51:32Z
dc.date.available2015-01-28T19:51:32Z
dc.date.issued2014
dc.description.abstractThe term “extensible language” is especially used when a language allows the extension of its own concrete syntax and the definition of the semantics of new constructs. Most popular tools designed for automatic generation of syntactic analysers do not offer any adequate resources for the specification of extensible languages. When used in the implementation of features like syntax macro definitions, these tools usually impose severe restrictions. For example, it may be required that macro definitions and their use reside indifferent files; or it may be impossible to perform the syntax analysis in one single pass. We claim that one of the main reasons for these limitations is the lack of appropriate formal models for the definition of the syntax of extensible languages. This paper presents the design and formal definition of Adaptable Parsing Expression Grammars, an extension to the Parsing Expression Grammar (PEG) model that allows the manipulation of its own production rules during the analysis of an input string. The proposed model compares favourably with similar approaches for the definition of the syntax of extensible languages. An implementation of the model is also presented, simulating the behavior of packrat parsers. Among the challenges for this implementation is the use of attributes and on the fly modifications on the production rules at parse time, features not present in standard PEG. This approach has been used on the definition of a real extensible language, and initial performance tests suggest that the model may work well in practice.pt_BR
dc.identifier.citationREIS, L. V. dos S. et al. The formalization and implementation of Adaptable Parsing Expression Grammars. Science of Computer Programming, v. 96, p. 191-210, 2014. Disponível em: <http://www.sciencedirect.com/science/article/pii/S0167642314000872>. Acesso em: 09 jan. 2015.pt_BR
dc.identifier.doihttps://doi.org/10.1016/j.scico.2014.02.020
dc.identifier.issn0167-6423
dc.identifier.urihttp://www.repositorio.ufop.br/handle/123456789/4414
dc.language.isoen_USpt_BR
dc.rights.licenseO periódico Science of Computer Programming concede permissão para depósito do artigo no Repositório Institucional da UFOP. Número da licença: 3544811304552.pt_BR
dc.subjectExtensible languagespt_BR
dc.subjectAdaptable grammarspt_BR
dc.titleThe formalization and implementation of Adaptable Parsing Expression Grammars.pt_BR
dc.typeArtigo publicado em periodicopt_BR
Arquivos
Pacote Original
Agora exibindo 1 - 1 de 1
Nenhuma Miniatura disponível
Nome:
ARTIGO_FormalizationImplementationAdaptable.pdf
Tamanho:
389.12 KB
Formato:
Adobe Portable Document Format
Licença do Pacote
Agora exibindo 1 - 1 de 1
Nenhuma Miniatura disponível
Nome:
license.txt
Tamanho:
2.57 KB
Formato:
Item-specific license agreed upon to submission
Descrição: