Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > python grammar

Reply
Thread Tools

python grammar

 
 
tpochep
Guest
Posts: n/a
 
      01-22-2007
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.

 
Reply With Quote
 
 
 
 
Tim Roberts
Guest
Posts: n/a
 
      01-23-2007
"tpochep" <(E-Mail Removed)> 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 - what does 'if', 'else' mean? I guess 'if' and
>'else' must be keywords, not non-terminals.


Yes, those refer to literal keywords.

I'd judge both of those as errors in the web page. There is a link on the
page for reporting problems.
--
Tim Roberts, http://www.velocityreviews.com/forums/(E-Mail Removed)
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphical grammar in python alefajnie Python 0 04-13-2008 08:56 AM
Can recursive descent parser handle Python grammar? seberino@spawar.navy.mil Python 4 10-02-2006 08:58 AM
Python keywords vs. English grammar Roy Smith Python 7 05-25-2006 12:05 AM
python bytecode grammar M1st0 Python 11 06-26-2005 07:52 PM
Convert Python grammar specs to ANTLR Edward C. Jones Python 0 02-27-2004 02:12 PM



Advertisments