[plt-scheme] Getting to core MzScheme
--- Jay McCarthy <jay.mccarthy at gmail.com> wrote:
> I am trying to go from the input to MzScheme to the input to the
> internal compiler.
>
> I have found `expand-syntax-top-level-with-compile-time-evals',
> which
> seems to expand some syntax to the kernel syntax.
>
> But, when I try to render said syntax to an s-expr, I have the
> problem
> that the binding information has been lost and macros become
> unhygenic. Is there something like `syntax-object->datum' that will
> produce the appropriate gensyms?
>
> Is see `syntax-object->datum' is implemented in C, so presumably
> it is not trivial to do this, but I feel like Ryan has probably
> done it before.
Indeed! Try this:
(require (lib "syntax-browser.ss" "macro-debugger"))
(browse-syntax <<your-syntax-object>>)
Ryan
>
> Thought I'd ask before implementing.
>
> Jay
>
> --
> Jay McCarthy <jay.mccarthy at gmail.com>
> http://jay.teammccarthy.org
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>