Back to Search
Start Over
Ensuring non-interference of composable language extensions
- Source :
- SLE
- Publication Year :
- 2017
- Publisher :
- ACM, 2017.
-
Abstract
- Extensible language frameworks aim to allow independently-developed language extensions to be easily added to a host programming language. It should not require being a compiler expert, and the resulting compiler should "just work" as expected. Previous work has shown how specifications for parsing (based on context free grammars) and for semantic analysis (based on attribute grammars) can be automatically and reliably composed, ensuring that the resulting compiler does not terminate abnormally. However, this work does not ensure that a property proven to hold for a language (or extended language) still holds when another extension is added, a problem we call interference. We present a solution to this problem using of a logical notion of coherence. We show that a useful class of language extensions, implemented as attribute grammars, preserve all coherent properties. If we also restrict extensions to only making use of coherent properties in establishing their correctness, then the correctness properties of each extension will hold when composed with other extensions. As a result, there can be no interference: each extension behaves as specified.
- Subjects :
- Correctness
Theoretical computer science
Parsing
Computer science
Programming language
020207 software engineering
02 engineering and technology
Context-free grammar
computer.software_genre
Rule-based machine translation
restrict
0202 electrical engineering, electronic engineering, information engineering
020201 artificial intelligence & image processing
Compiler
L-attributed grammar
computer
Compiler correctness
Subjects
Details
- Database :
- OpenAIRE
- Journal :
- Proceedings of the 10th ACM SIGPLAN International Conference on Software Language Engineering
- Accession number :
- edsair.doi...........5ae8065f9992df5c170e1475508ea22e
- Full Text :
- https://doi.org/10.1145/3136014.3136023