Bounded seas

Kurs, Jan; Lungu, Mircea; Iyadurai, Rathesan; Nierstrasz, Oscar Marius (2015). Bounded seas. Computer languages, systems & structures, 44, pp. 114-140. Pergamon Press 10.1016/

[img] Text
1-s2.0-S1477842415000536-main.pdf - Published Version
Restricted to registered users only
Available under License Publisher holds Copyright.

Download (2MB) | Request a copy
Kurs15a-postprint.pdf - Accepted Version
Available under License Publisher holds Copyright.

Download (532kB) | Preview

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.

Item Type:

Journal Article (Original Article)


08 Faculty of Science > Institute of Computer Science (INF)
08 Faculty of Science > Institute of Computer Science (INF) > Software Composition Group (SCG) [discontinued]

UniBE Contributor:

Nierstrasz, Oscar


000 Computer science, knowledge & systems
500 Science > 510 Mathematics




Pergamon Press




Oscar Nierstrasz

Date Deposited:

04 Jul 2016 08:11

Last Modified:

02 Mar 2023 23:27

Publisher DOI:


Additional Information:

Special issue on the 6th and 7th International Conference on Software Language Engineering (SLE 2013 and SLE 2014)

Uncontrolled Keywords:

scg-pub, scg15, jb16, snf-asa1, kursjan




Actions (login required)

Edit item Edit item
Provide Feedback