Re: using Python's AST generator for other languages

2008-07-11 Thread Benjamin
On Jul 11, 12:27 am, eliben <[EMAIL PROTECTED]> wrote: > > > 2) What is the meaning of the comment in astgen.py ? Are the Python > > > maintainers unhappy with the design of the AST ?3 > > > Node, I think, is talking about a node in the parse tree. (AST is > > generated from another parse tree.) Se

Re: using Python's AST generator for other languages

2008-07-10 Thread eliben
> > 2) What is the meaning of the comment in astgen.py ? Are the Python > > maintainers unhappy with the design of the AST ?3 > > Node, I think, is talking about a node in the parse tree. (AST is > generated from another parse tree.) See PEP 339 for details. > Thanks, PEP 339 clarified a lot to

Re: using Python's AST generator for other languages

2008-07-10 Thread Benjamin
On Jul 10, 12:40 pm, eliben <[EMAIL PROTECTED]> wrote: > Hello, > > I'm building a parser in Python, and while pondering on the design of > my ASTs had the idea to see what Python uses. I quickly got to the > compiler.ast module, and understood it's automatically generated. So I > went to the sourc

using Python's AST generator for other languages

2008-07-10 Thread eliben
Hello, I'm building a parser in Python, and while pondering on the design of my ASTs had the idea to see what Python uses. I quickly got to the compiler.ast module, and understood it's automatically generated. So I went to the source, ast.txt and tools/compiler/astgen.py, where I was this unexpect