www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

README.md (806B)


      1 [![Unmaintained as of 2017,](https://img.shields.io/maintenance/no/2016.svg)](https://github.com/jsmaniac/preexpanded/issues)
      2 
      3 preexpanded
      4 ===========
      5 
      6 This project was an attempt at making it possible to write efficient macros which produce code using other macros.
      7 The goal was to statically pre-expand parts the generated code within the generator, so that the produced code consists mostly of primitives (`let-values`, `if`, …), but can still be specified in a concise way (`let`, `cond`, …).
      8 
      9 To do this properly, one would need to consider the generated macros as source-to-source functions which can be partially applied.
     10 
     11 This attempt however only consisted in hard-coding the expanded form of a few common macros, in a way which could easily and efficiently be injected in the generated code.