[pypy-dev] Metaprogramming with syntax extension
benjamin at python.org
Sun Dec 4 19:51:28 CET 2011
2011/12/4 Valentin Perrelle <valentin.perrelle at orange.fr>:
> Last months i played a bit with syntax extension in order to develop a
> network programming paradigm inspired by the Unreal Script language. I did
> that with LUA and the help of metalua which use a lua lua compiler. I was
> wondering if i could do the same with Python.
> Is it possible with Pypy to dynamically (or even statically) change the
> parser in order to accept new syntax constructions ?
You would have to modify the grammar in pypy/interpreter/pyparser/data
and transform it into some reasonable AST in
More information about the pypy-dev