Commits

Anonymous committed a354e94

Added full Python 3.1 keyword list from Section 2.3.1 of The Python Language Reference.
http://docs.python.org/3.1/reference/lexical_analysis.html#keywords

Comments (0)

Files changed (2)

 2009-08-02  Bradley M. Kuhn  <bkuhn@ebb.org>
 
+	* Grammar/Grammar.pg: Added full keyword list from Python 3.1
+	docs.
+
 	* Lib/test/parrot/functions.py: Added lambda inside lambda test.
 
 	* CREDIT: Added Pynie contributors from Parrot sources.

Grammar/Grammar.pg

 }
 
 token keyword {
-    [ 'and'   | 'assert' | 'break'  | 'class'  | 'continue' | 'def'
-    | 'del'   | 'elif'   | 'else'   | 'except' | 'exec'     | 'finally'
-    | 'for'   | 'from'   | 'global' | 'if'     | 'import'   | 'in'
-    | 'is'    | 'lambda' | 'not'    | 'or'     | 'pass' 
-    | 'raise' | 'return' | 'try'    | 'while'  | 'with'     | 'yield' ] >>
+    [ 'False'  | 'class'    | 'finally' | 'is'       | 'return'
+    | 'None'   | 'continue' | 'for'     | 'lambda'   | 'try'
+    | 'True'   | 'def'      | 'from'    | 'nonlocal' | 'while'
+    | 'and'    | 'del'      | 'global'  | 'not'      | 'with'
+    | 'as'     | 'elif'     | 'if'      | 'or'       | 'yield'
+    | 'assert' | 'else'     | 'import'  | 'pass'
+    | 'break'  | 'except'   | 'in'      | 'raise' ] >>
 }
 
 ## vim: expandtab sw=4