cyclone icon indicating copy to clipboard operation
cyclone copied to clipboard

Support for ir-macro-transformer

Open arthurmaciel opened this issue 3 years ago • 3 comments

I still can't propose a pull request, but if anyone else could that would be awesome.

CHICKEN's docs and implementation.

arthurmaciel avatar Jan 22 '21 21:01 arthurmaciel

Some considerations:

https://github.com/ashinn/chibi-scheme/issues/114 https://gist.github.com/baguette/2632464

Unfortunately it seems the preferred way to implement these is in terms of syntactic closures (which we do not currently support) rather than explicit renaming macros.

justinethier avatar Jan 22 '21 22:01 justinethier

@justinethier, while we do not provide syntatic closures (if we ever will), do you think it is useful to provide the ir-macro as a package? I can arrange that if you think so.

arthurmaciel avatar Feb 03 '21 00:02 arthurmaciel

@arthurmaciel Perhaps, but there is not a way to directly use another macro system provided by a package. I think it will be necessary to modify Cyclone to recognize these macros. The macro for ir-macros would also need to be written in terms of er macros.

justinethier avatar Feb 03 '21 18:02 justinethier