We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Mathematics/Language composition using source code annotations
PeriodicalsMathematics

Language composition using source code annotations

Checking your access to this record.

Abstract & Overview

In this paper we examine source code annotations from the viewpoint of formal languages - we discuss their abstract syntax, concrete syntax, and semantics, thus showing the correspondence between annotations and formal languages. We propose to consider a set of all annotations and their parameters processed by the same reference implementation (they belong to the same domain) to be called an annotation-based language. The performed analysis also pinpoints a specificity of annotations in comparison with formal languages in general - the binding between annotations and a host language. We elaborate this idea with an analysis of annotations? potential for language composition, in particular for pure embedding. We then show how pure embedding with annotations can be used for language unification, language referencing by extension, and language extension. This work provides a basis for further research in the field of source code annotations in the context of formal languages.

Cite this record

Milan Nosáľ, Matúš SulĂ­r, Ján Juhár (2016). Language composition using source code annotations. Computer Science and Information Systems, 13(3), 707–729. https://doi.org/10.2298/csis160114024n

Copy in another style

Nosáľ, M., SulĂ­r, M., & Juhár, J. (2016). Language composition using source code annotations. Computer Science and Information Systems, 13(3), 707–729. https://doi.org/10.2298/csis160114024n
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.