2011/12/4 Valentin Perrelle <[email protected]>:
> Hi,
>
> 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
pypy/interpreter/astcompiler/astbuilder.py.


-- 
Regards,
Benjamin
_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to