chibi-scheme/lib/chibi/macroexpand.module
Alex Shinn f969364176 adding initial macroexpand utility
This expands an expression and gives you an sexp representation
of the resulting ast, renaming symbols when there are conflicts.
It doesn't guarantee the minimum number of renames (neither in
terms of renamed bindings nor renamed instances) but tries to be
minimal and does guarantee no renames if there are no conflicts.

This is just for debugging purposes - chibi itself directly
uses the AST without renaming or doing anything like this.
2009-12-06 23:17:37 +09:00

6 lines
133 B
Text

(define-module (chibi macroexpand)
(import (scheme))
(import (chibi ast))
(export macroexpand)
(include "macroexpand.scm"))