Flux Research Group University of Utah
First Page Image: Adapting Scheme-Like Macros to a C-Like Language

Adapting Scheme-Like Macros to a C-Like Language

Kevin Atkinson and Matthew Flatt

Workshop on Scheme and Functional Programming (Scheme) 2011

abstract
ZL is a C++-compatible language in which high-level constructs, such as classes, are defined using macros over a C-like core. ZL’s parser and macro expander are similar to that of Scheme. Unlike Scheme, however, ZL must deal with C’s richer syntax. Specifically, support for context-sensitive parsing and multiple syntactic categories (expressions, statements, types, etc.) leads to novel strategies for parsing and macro expansion. In this paper we describe ZL’s approach to parsing and macros.

areas
Languages

PDF PDF/A Slides BibTeX Hayagriva