lihaoyi / macropy

Macros in Python: quasiquotes, case classes, LINQ and more!
3.28k stars 178 forks source link

Access to complete source file ast? #51

Closed Varriount closed 11 years ago

Varriount commented 11 years ago

Is there currently any way to access the entire source file from which a macro is called? I have some ideas for implementing a inclined lambda, and being able to analyze and modify the entire file's east would be appreciated over hackish-approaches.

lihaoyi commented 11 years ago

There currently isn't; It's trivial to add, and I've ideas of what i'd like to use it for, but things like

mean I haven't found something i'm happy with yet

lihaoyi commented 11 years ago

Closing this for now, since it's probably not going to happen all that soon, even if it does happen eventually.