Bounded seas


Autoria(s): Kurs, Jan; Lungu, Mircea; Iyadurai, Rathesan; Nierstrasz, Oscar Marius
Data(s)

2015

Resumo

Abstract Imprecise manipulation of source code (semi-parsing) is useful for tasks such as robust parsing, error recovery, lexical analysis, and rapid development of parsers for data extraction. An island grammar precisely defines only a subset of a language syntax (islands), while the rest of the syntax (water) is defined imprecisely. Usually water is defined as the negation of islands. Albeit simple, such a definition of water is naive and impedes composition of islands. When developing an island grammar, sooner or later a language engineer has to create water tailored to each individual island. Such an approach is fragile, because water can change with any change of a grammar. It is time-consuming, because water is defined manually by an engineer and not automatically. Finally, an island surrounded by water cannot be reused because water has to be defined for every grammar individually. In this paper we propose a new technique of island parsing —- bounded seas. Bounded seas are composable, robust, reusable and easy to use because island-specific water is created automatically. Our work focuses on applications of island parsing to data extraction from source code. We have integrated bounded seas into a parser combinator framework as a demonstration of their composability and reusability.

Formato

application/pdf

Identificador

http://boris.unibe.ch/82284/1/1-s2.0-S1477842415000536-main.pdf

Kurs, Jan; Lungu, Mircea; Iyadurai, Rathesan; Nierstrasz, Oscar Marius (2015). Bounded seas. Computer languages, systems & structures, 44, pp. 114-140. Pergamon Press 10.1016/j.cl.2015.08.002 <http://dx.doi.org/10.1016/j.cl.2015.08.002>

doi:10.7892/boris.82284

info:doi:10.1016/j.cl.2015.08.002

urn:issn:1477-8424

Idioma(s)

eng

Publicador

Pergamon Press

Relação

http://boris.unibe.ch/82284/

Direitos

info:eu-repo/semantics/restrictedAccess

Fonte

Kurs, Jan; Lungu, Mircea; Iyadurai, Rathesan; Nierstrasz, Oscar Marius (2015). Bounded seas. Computer languages, systems & structures, 44, pp. 114-140. Pergamon Press 10.1016/j.cl.2015.08.002 <http://dx.doi.org/10.1016/j.cl.2015.08.002>

Palavras-Chave #000 Computer science, knowledge & systems #510 Mathematics
Tipo

info:eu-repo/semantics/article

info:eu-repo/semantics/publishedVersion

PeerReviewed