{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,21]],"date-time":"2026-09-21T19:23:56Z","timestamp":1790018636165,"version":"4.0.1"},"reference-count":65,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2017,10,12]],"date-time":"2017-10-12T00:00:00Z","timestamp":1507766400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2017,10,12]]},"abstract":"<jats:p>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. Most importantly, 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 specification 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.<\/jats:p>\n                  <jats:p>The paper describes a number of techniques for specifying a host language, in this case C at the C11 standard, to make it more amenable to language extension. These include techniques that make additional extensions pass these modular analyses, refactorings of the host language to support a wider range of extensions, and the addition of semantic extension points to support, for example, operator overloading and non-local code transformations.<\/jats:p>","DOI":"10.1145\/3138224","type":"journal-article","created":{"date-parts":[[2017,10,13]],"date-time":"2017-10-13T11:15:45Z","timestamp":1507893345000},"page":"1-29","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":18,"title":["Reliable and automatic composition of language extensions to C: the ableC extensible language framework"],"prefix":"10.1145","volume":"1","author":[{"given":"Ted","family":"Kaminski","sequence":"first","affiliation":[{"name":"University of Minnesota, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Lucas","family":"Kramer","sequence":"additional","affiliation":[{"name":"University of Minnesota, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Travis","family":"Carlson","sequence":"additional","affiliation":[{"name":"University of Minnesota, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Eric","family":"Van Wyk","sequence":"additional","affiliation":[{"name":"University of Minnesota, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2017,10,12]]},"reference":[{"key":"e_1_2_2_1_1","unstructured":"S. R. Adams. 1993. Modular Grammars for Programming Language Prototyping. Ph.D. Dissertation. University of Southampton Department of Elec. and Comp. Sci. UK."},{"key":"e_1_2_2_2_1","unstructured":"A.V. Aho R. Sethi and J.D. Ullman. 1986. Compilers \u2013 Principles Techniques and Tools. Addison-Wesley Reading MA."},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-73449-9_5"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/1082036.1082042"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/1028976.1029007"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/3136040.3136055"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1346281.1346312"},{"key":"e_1_2_2_8_1","volume-title":"Eco: A Language Composition Editor","author":"Diekmann Lukas","year":"2014","unstructured":"Lukas Diekmann and Laurence Tratt. 2014. Eco: A Language Composition Editor. Springer International Publishing, Cham, 82\u2013101."},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/1985793.1985889"},{"key":"e_1_2_2_10_1","volume-title":"Proceedings of the ACM Conference on Object Oriented Programming, Systems, Languages, and Systems (OOPSLA \u201907)","author":"Ekman Torbj\u00f6rn","year":"2007","unstructured":"Torbj\u00f6rn Ekman and G\u00f6rel Hedin. 2007a. The JastAdd extensible Java compiler. In Proceedings of the ACM Conference on Object Oriented Programming, Systems, Languages, and Systems (OOPSLA \u201907). ACM, 1\u201318."},{"key":"e_1_2_2_11_1","volume-title":"The JastAdd system - modular extensible compiler construction. Science of Computer Programming 69 (December","author":"Ekman Torbj\u00f6rn","year":"2007","unstructured":"Torbj\u00f6rn Ekman and G\u00f6rel Hedin. 2007b. The JastAdd system - modular extensible compiler construction. Science of Computer Programming 69 (December 2007), 14\u201326. Issue 1-3."},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/2048066.2048099"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44202-9_20"},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/143165.143210"},{"key":"e_1_2_2_15_1","volume-title":"Reference: Racket. Technical Report PLT-TR-2010-1","author":"Flatt Matthew","year":"2010","unstructured":"Matthew Flatt. 2010. Reference: Racket. Technical Report PLT-TR-2010-1. PLT Inc."},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/964001.964011"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/301618.301665"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/512529.512531"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/277650.277725"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(83)90021-7"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1133981.1133987"},{"key":"e_1_2_2_22_1","first-page":"301","article-title":"Reference Attribute Grammars","volume":"24","author":"Hedin G.","year":"2000","unstructured":"G. Hedin. 2000. Reference Attribute Grammars. Informatica 24, 3 (2000), 301\u2013317.","journal-title":"Informatica"},{"key":"e_1_2_2_23_1","volume-title":"Building Domain-Specific Embedded Languages. Comput. Surveys 28, 4es","author":"Hudak P.","year":"1996","unstructured":"P. Hudak. 1996. Building Domain-Specific Embedded Languages. Comput. Surveys 28, 4es (1996)."},{"key":"e_1_2_2_24_1","unstructured":"Ted Kaminski. 2017. Reliably Composable Language Extensions. Ph.D. Dissertation. University of Minnesota Minneapolis Minnesota USA. Available at http:\/\/hdl.handle.net\/11299\/188954 ."},{"key":"e_1_2_2_25_1","unstructured":"Ted Kaminski Lucas Kramer Travis Carlson and Eric Van Wyk. 2017. Reliable and automatic composition of language extensions to C \u2014 Supplemental Material. Technical Report 17-009. University of Minnesota Department of Computer Science and Engineering. Available at https:\/\/www.cs.umn.edu\/research\/technical_reports\/view\/17-009 ."},{"key":"e_1_2_2_26_1","volume-title":"Proceedings of the 4th International Conference on Software Language Engineering (SLE \u201911)","volume":"6940","author":"Kaminski Ted","year":"2011","unstructured":"Ted Kaminski and Eric Van Wyk. 2011. Integrating attribute grammar and functional programming language features. In Proceedings of the 4th International Conference on Software Language Engineering (SLE \u201911) (LNCS), Vol. 6940. Springer, 263\u2013282."},{"key":"e_1_2_2_27_1","volume-title":"Proceedings of the International Conference on Software Language Engineering (SLE) (LNCS)","volume":"7745","author":"Kaminski Ted","year":"2012","unstructured":"Ted Kaminski and Eric Van Wyk. 2012. Modular well-definedness analysis for attribute grammars. In Proceedings of the International Conference on Software Language Engineering (SLE) (LNCS), Vol. 7745. Springer, 352\u2013371."},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3136014.3136023"},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01177548"},{"key":"e_1_2_2_30_1","volume-title":"Proceedings of the ACM Conference on Object Oriented Programming, Systems, Languages, and Systems (OOPSLA). ACM.","author":"Lennart C.","unstructured":"Lennart C. L. Kats and Eelco Visser. 2010. The Spoofax Language Workbench. Rules for Declarative Specification of Languages and IDEs. In Proceedings of the ACM Conference on Object Oriented Programming, Systems, Languages, and Systems (OOPSLA). ACM."},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.1109\/SCAM.2009.28"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01692511"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/319838.319859"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837644"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-22306-8_8"},{"key":"e_1_2_2_36_1","volume-title":"Proceedings of the 12th International Conference on Compiler Construction (LNCS)","volume":"2622","author":"Moreau Pierre-Etienne","year":"2003","unstructured":"Pierre-Etienne Moreau, Christophe Ringeissen, and Marian Vittek. 2003. A Pattern Matching Compiler for Multiple Target Languages. In Proceedings of the 12th International Conference on Compiler Construction (LNCS), Vol. 2622. Springer, 61\u201376."},{"key":"e_1_2_2_37_1","volume-title":"Cil: Intermediate Language and Tools for Analysis and Transformation of C Programs. In Proceedings of the 11th International Conference on Compiler Construction (Lecture Notes in Computer Science)","volume":"2304","author":"Necula G. C.","unstructured":"G. C. Necula, S. McPeak, S. P. Rahul, and W. Weimer. 2002. Cil: Intermediate Language and Tools for Analysis and Transformation of C Programs. In Proceedings of the 11th International Conference on Compiler Construction (Lecture Notes in Computer Science), Vol. 2304. Springer-Verlag, 213\u2013228."},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-36579-6_11"},{"key":"e_1_2_2_39_1","unstructured":"Cyrus Omar. 2017. Reasonably Programmable Syntax. Ph.D. Dissertation. Carnegie Mellon University Pittsburgh USA."},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/2489812.2489815"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44202-9_5"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1142\/S0129626400000214"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/2185520.2185528"},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/2660193.2660237"},{"key":"e_1_2_2_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/2814251.2814260"},{"key":"e_1_2_2_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/1868294.1868314"},{"key":"e_1_2_2_47_1","volume-title":"Generic Attribute Grammars. In 2nd Workshop on Attribute Grammars and their Applications. 185\u2013204","author":"Saraiva Joao","year":"1999","unstructured":"Joao Saraiva and Doaitse Swierstra. 1999. Generic Attribute Grammars. In 2nd Workshop on Attribute Grammars and their Applications. 185\u2013204."},{"key":"e_1_2_2_48_1","unstructured":"August Schwerdfeger. 2010. Context-Aware Scanning and Determinism-Preserving Grammar Composition in Theory and Practice. Ph.D. Dissertation. University of Minnesota Department of Computer Science and Engineering Minneapolis Minnesota USA. Available at http:\/\/purl.umn.edu\/95605 ."},{"key":"e_1_2_2_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/1542476.1542499"},{"key":"e_1_2_2_50_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-12107-4_15"},{"key":"e_1_2_2_51_1","volume-title":"Proceedings of the 10th USENIX Security Symposium. Washington, D.C., 201\u2013218","author":"Shankar Umesh","year":"2001","unstructured":"Umesh Shankar, Kunal Talwar, Jeffrey S. Foster, and David Wagner. 2001. Detecting Format String Vulnerabilities with Type Qualifiers. In Proceedings of the 10th USENIX Security Symposium. Washington, D.C., 201\u2013218."},{"key":"e_1_2_2_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/1167515.1167511"},{"key":"e_1_2_2_53_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-18023-1_12"},{"key":"e_1_2_2_54_1","first-page":"1","article-title":"Silver: an Extensible Attribute Grammar System","volume":"75","author":"Wyk Eric Van","year":"2010","unstructured":"Eric Van Wyk, Derek Bodin, Jimin Gao, and Lijesh Krishnan. 2010. Silver: an Extensible Attribute Grammar System. Science of Computer Programming 75, 1\u20132 (January 2010), 39\u201354.","journal-title":"Science of Computer Programming"},{"key":"e_1_2_2_55_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45937-5_11"},{"key":"e_1_2_2_56_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-73589-2_27"},{"key":"e_1_2_2_57_1","doi-asserted-by":"publisher","DOI":"10.1145\/1289971.1289983"},{"key":"e_1_2_2_58_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45127-7_27"},{"key":"e_1_2_2_59_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-35992-7_11"},{"key":"e_1_2_2_60_1","doi-asserted-by":"publisher","DOI":"10.1145\/2384716.2384767"},{"key":"e_1_2_2_61_1","doi-asserted-by":"publisher","DOI":"10.1145\/73141.74830"},{"key":"e_1_2_2_62_1","volume-title":"The expression problem. (December","author":"Wadler Phil","year":"1998","unstructured":"Phil Wadler. 1998. The expression problem. (December 1998). Discussion on the Java-Genericity mailing list, available at http:\/\/homepages.inf.ed.ac.uk\/wadler\/papers\/expression\/expression.txt ."},{"key":"e_1_2_2_63_1","doi-asserted-by":"publisher","DOI":"10.1145\/2889443.2889448"},{"key":"e_1_2_2_64_1","doi-asserted-by":"publisher","unstructured":"D. Weise and R. Crew. 1993. Programmable Syntax Macros. ACM SIGPLAN Notices 28 6 (1993). 10.1145\/173262.155105","DOI":"10.1145\/173262.155105"},{"key":"e_1_2_2_65_1","volume-title":"Proceedings of the Workshop on Foundations of Object-Oriented Languages, FOOL \u201912","author":"Zenger Matthias","year":"2005","unstructured":"Matthias Zenger and Martin Odersky. 2005. Independently extensible solutions to the expression problem. In Proceedings of the Workshop on Foundations of Object-Oriented Languages, FOOL \u201912."}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3138224","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3138224","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,10]],"date-time":"2026-09-10T16:12:00Z","timestamp":1789056720000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3138224"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2017,10,12]]},"references-count":65,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2017,10,12]]}},"alternative-id":["10.1145\/3138224"],"URL":"https:\/\/doi.org\/10.1145\/3138224","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2017,10,12]]},"assertion":[{"value":"2017-10-12","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}