Reliable and Automatic Composition of Language Extensions to C

Опубликовано: 17 Апрель 2026
на канале: Splash Conference 2017
98
3

Ted Kaminski, Lucas Kramer, Travis Carlson, Eric Van Wyk
This paper describes an extensible language framework, ableC, that allows programmers to import new, domain-specific, independently-developed language features into their programming language, in this case C. Crucially, this framework ensures that the language extensions will automatically compose to form a working translator that does not terminate abnormally. This is possible due to two modular analyses that extension developers can apply to their language extension to check its composability. Specifically, these ensure that the composed concrete syntax is non-ambiguous and the composed attribute grammar specifying the semantics is well-defined. This assurance and the expressiveness of the supported extensions is a distinguishing characteristic of the approach.