mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 06:39:17 +02:00
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.
6 lines
133 B
Text
6 lines
133 B
Text
|
|
(define-module (chibi macroexpand)
|
|
(import (scheme))
|
|
(import (chibi ast))
|
|
(export macroexpand)
|
|
(include "macroexpand.scm"))
|