lihaoyi / macropy

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

A custom AST hierarchy for our own use #9

Open lihaoyi opened 11 years ago

lihaoyi commented 11 years ago

The default python AST objects are clunky and annoying:

In general they are a pain to use. It would be great if we could have a different ast representation, either using astng or made ourselves using case classes.

thedrow commented 9 years ago

Can you direct me to where we're using or parsing the AST?

thedrow commented 9 years ago

Astroid doesn't parse generators yet. See https://bitbucket.org/logilab/astroid/issue/94/add-an-infer_call_result-method-for

ceridwen commented 9 years ago

I don't understand how the absence of infer_call_result has any relevance to MacroPy, it looks like it's there for checking function return/call sign signatures for Pylint.