Python grammar extension via encoding (pyxl style) questions

2016-09-29 Thread Pavel Velikhov
Hi everybody! We’re building an experimental extension to Python, we’re extending Python’s comprehensions into a full-scale query language. And we’d love to use the trick that was done in pyxl, where a special encoding of the file will trigger the preprocessor to run and compile our extend

Re: python grammar

2007-01-22 Thread Tim Roberts
"tpochep" <[EMAIL PROTECTED]> wrote: > >In 'augop' non-terminal : > >http://docs.python.org/ref/augassign.html > >the delimiter '//=' was skipped. Why? Probably an oversight. //= is relatively new. >In 'Boolean operations': > >http://docs.python.org/ref/Booleans.html > >In 'expression' rule - wh

python grammar

2007-01-22 Thread tpochep
Hello. In 'augop' non-terminal : http://docs.python.org/ref/augassign.html the delimiter '//=' was skipped. Why? In 'Boolean operations': http://docs.python.org/ref/Booleans.html In 'expression' rule - what does 'if', 'else' mean? I guess 'if' and 'else' must be keywords, not non-terminals.

Re: Can recursive descent parser handle Python grammar?

2006-10-02 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > Ben Sizer wrote: > > [EMAIL PROTECTED] wrote: > > > I'm a compiler newbie and was curious if Python's language/grammar > > > can be handled by a recursive descent parser. > > > > I believe a recursive descent parser can handle any grammar; it just > > depends on how pure

Re: Can recursive descent parser handle Python grammar?

2006-09-29 Thread Antoon Pardon
On 2006-09-28, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm a compiler newbie and was curious if Python's language/grammar > can be handled by a recursive descent parser. IIUC the python grammer is LL(1) and the development team is commited to keeping it LL(1). LL(1) languages can be handle

Re: Can recursive descent parser handle Python grammar?

2006-09-29 Thread [EMAIL PROTECTED]
Ben Sizer wrote: > [EMAIL PROTECTED] wrote: > > I'm a compiler newbie and was curious if Python's language/grammar > > can be handled by a recursive descent parser. > > I believe a recursive descent parser can handle any grammar; it just > depends on how pure you want it to be. > > -- > Ben Size

Re: Can recursive descent parser handle Python grammar?

2006-09-29 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > I'm a compiler newbie and was curious if Python's language/grammar > can be handled by a recursive descent parser. I believe a recursive descent parser can handle any grammar; it just depends on how pure you want it to be. -- Ben Sizer -- http://mail.python.org/mailm

Can recursive descent parser handle Python grammar?

2006-09-28 Thread [EMAIL PROTECTED]
I'm a compiler newbie and was curious if Python's language/grammar can be handled by a recursive descent parser. Well? Chris -- http://mail.python.org/mailman/listinfo/python-list