User loginNavigation |
Macro systemsWhen I first learned Scheme I had heard about how powerful the macro system was, and that the full power of the language was available during the macro system. What I think is interesting was an assumption I had before I learned how the macro system actually works. I had assumed that one could call functions during macro expansion that were defined in the source program. I am trying to find out whether such macro systems actually exist, where the AST is evaluated as needed while it is being transformed. One simple approach I can imagine, is that when a macro uses a function defined in the source, that function is evaluated/compiled as needed. If it contains macros that haven't been expanded into something meaningful, then the compiler simply fails. I think this kind of system where macros are intertwined with a program interpreter, may be hard to reason about formally, but could be a very expressive tool. Has anyone encountered such a macro system? By cdiggins at 2009-01-17 17:16 | LtU Forum | previous forum topic | next forum topic | other blogs | 10389 reads
|
Browse archives
Active forum topics |
Recent comments
22 weeks 6 days ago
22 weeks 6 days ago
22 weeks 6 days ago
45 weeks 18 hours ago
49 weeks 2 days ago
50 weeks 6 days ago
50 weeks 6 days ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago