{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T15:28:02Z","timestamp":1787498882776,"version":"build-2736575974"},"reference-count":24,"publisher":"Cambridge University Press (CUP)","issue":"2","license":[{"start":{"date-parts":[[2012,5,9]],"date-time":"2012-05-09T00:00:00Z","timestamp":1336521600000},"content-version":"unspecified","delay-in-days":69,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2012,3]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Racket is a large language that is built mostly within itself. Unlike the usual approach taken by non-Lisp languages, the self-hosting of Racket is not a matter of bootstrapping one implementation through a previous implementation, but instead a matter of building a tower of languages and libraries via macros. The upper layers of the tower include a class system, a component system, pedagogic variants of Scheme, a statically typed dialect of Scheme, and more. The demands of this language-construction effort require a macro system that is substantially more expressive than previous macro systems. In particular, while conventional Scheme macro systems handle stand-alone syntactic forms adequately, they provide weak support for macros that share information or macros that use existing syntactic forms in new contexts. This paper describes and models features of the Racket macro system, including support for general compile-time bindings, sub-form expansion and analysis, and environment management. The presentation assumes a basic familiarity with Lisp-style macros, and it takes for granted the need for macros that respect lexical scope. The model, however, strips away the pattern and template system that is normally associated with Scheme macros, isolating a core that is simpler, can support pattern and template forms themselves as macros, and generalizes naturally to Racket's other extensions.<\/jats:p>","DOI":"10.1017\/s0956796812000093","type":"journal-article","created":{"date-parts":[[2012,5,9]],"date-time":"2012-05-09T08:46:30Z","timestamp":1336553190000},"page":"181-216","source":"Crossref","is-referenced-by-count":28,"title":["Macros that Work Together"],"prefix":"10.1017","volume":"22","author":[{"given":"MATTHEW","family":"FLATT","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"RYAN","family":"CULPEPPER","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"DAVID","family":"DARAIS","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"ROBERT BRUCE","family":"FINDLER","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2012,5,9]]},"reference":[{"key":"S0956796812000093_ref14","first-page":"151","volume-title":"Proceedings of the ACM Conference on Lisp and Functional Programming","author":"Kohlbecker","year":"1986"},{"key":"S0956796812000093_ref12","unstructured":"Herman D. (2010) A Theory of Typed Hygienic Macros. PhD dissertation, Northeastern University, Boston, Massachusetts."},{"key":"S0956796812000093_ref24","first-page":"203","volume-title":"Proceedings of ACM Symposium on the Principles of Programming Languages","author":"Waddell","year":"1999"},{"key":"S0956796812000093_ref9","first-page":"341","volume-title":"the Proceedings of the 14th IEEE Symposium on Logic in Computer Science (LICS'99)","author":"Gabbay","year":"1999"},{"key":"S0956796812000093_ref6","volume-title":"Semantics Engineering with PLT Redex","author":"Felleisen","year":"2009"},{"key":"S0956796812000093_ref5","doi-asserted-by":"publisher","DOI":"10.1007\/BF01806308"},{"key":"S0956796812000093_ref16","volume-title":"The Definition of Standard ML","author":"Milner","year":"1990"},{"key":"S0956796812000093_ref7","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796808006928"},{"key":"S0956796812000093_ref23","article-title":"Silver: an extensible attribute grammar system","volume":"75","author":"Van Wyk","year":"2009","journal-title":"Sci. Comput. Program."},{"key":"S0956796812000093_ref20","first-page":"263","volume-title":"Proceedings of the 8th ACM International Conference on Functional Programming","author":"Shinwell","year":"2003"},{"key":"S0956796812000093_ref19","first-page":"60","volume-title":"Proceedings of Haskell Workshop 2002","author":"Sheard","year":"2002"},{"key":"S0956796812000093_ref2","doi-asserted-by":"publisher","DOI":"10.1145\/1317265.1317269"},{"key":"S0956796812000093_ref4","doi-asserted-by":"publisher","DOI":"10.1007\/BF01806176"},{"key":"S0956796812000093_ref1","first-page":"86","volume-title":"Proceedings of the Lisp and Functional Programming","author":"Bawden","year":"1988"},{"key":"S0956796812000093_ref3","first-page":"155","volume-title":"Proceedings of ACM Symposium on Principles of Programming Languages","author":"Clinger","year":"1991"},{"key":"S0956796812000093_ref11","unstructured":"Ghuloum A. & Dybvig R. Kent (2007) Portable syntax-case. Accessed April, 2012. Available at: https:\/\/www.cs.indiana.edu\/chezscheme\/syntax-case\/"},{"key":"S0956796812000093_ref8","doi-asserted-by":"publisher","DOI":"10.1145\/581478.581486"},{"key":"S0956796812000093_ref22","unstructured":"Van Tonder A. (2007) R6RS libraries and macros. Accessed April, 2012. Available at: http:\/\/www.het.brown.edu\/people\/andre\/macros\/"},{"key":"S0956796812000093_ref21","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796809990074"},{"key":"S0956796812000093_ref15","doi-asserted-by":"publisher","DOI":"10.1145\/41625.41632"},{"key":"S0956796812000093_ref17","first-page":"199","volume-title":"Proceedings of the SIGPLAN '88 Conference on Programming Language Design and Implementation","author":"Pfenning","year":"1988"},{"key":"S0956796812000093_ref10","unstructured":"Gasbichler M. (2006) Fully-Parameterized Higher-Order Modules with Hygienic Macros. PhD dissertation, Universit\u00e4t T\u00fcbingen, T\u00fcbingen, Germany."},{"key":"S0956796812000093_ref13","volume-title":"Proceedings of the Workshop on Scheme and Functional Programming","author":"Hilsdale","year":"2000"},{"key":"S0956796812000093_ref18","first-page":"202","volume-title":"Proceedings of the International Conference on Automated Deduction","author":"Pfenning","year":"1999"}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796812000093","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:03Z","timestamp":1779834963000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796812000093\/type\/journal_article"}},"subtitle":["Compile-time bindings, partial expansion, and definition contexts"],"short-title":[],"issued":{"date-parts":[[2012,3]]},"references-count":24,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2012,3]]}},"alternative-id":["S0956796812000093"],"URL":"https:\/\/doi.org\/10.1017\/s0956796812000093","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2012,3]]}}}