Pablo Galindo | 91759d9 | 2019-03-25 22:01:12 +0000 | [diff] [blame] | 1 | """Keywords (from "Grammar/Grammar") |
Guido van Rossum | 54f22ed | 2000-02-04 15:10:34 +0000 | [diff] [blame] | 2 | |
| 3 | This file is automatically generated; please don't muck it up! |
| 4 | |
| 5 | To update the symbols in this file, 'cd' to the top directory of |
Pablo Galindo | 91759d9 | 2019-03-25 22:01:12 +0000 | [diff] [blame] | 6 | the python source tree and run: |
Guido van Rossum | 54f22ed | 2000-02-04 15:10:34 +0000 | [diff] [blame] | 7 | |
Pablo Galindo | 91759d9 | 2019-03-25 22:01:12 +0000 | [diff] [blame] | 8 | python3 -m Parser.pgen.keywordgen Grammar/Grammar \ |
| 9 | Grammar/Tokens \ |
| 10 | Lib/keyword.py |
| 11 | |
| 12 | Alternatively, you can run 'make regen-keyword'. |
Guido van Rossum | 54f22ed | 2000-02-04 15:10:34 +0000 | [diff] [blame] | 13 | """ |
Guido van Rossum | 90d556f | 1997-03-20 19:44:30 +0000 | [diff] [blame] | 14 | |
Raymond Hettinger | edc853e | 2002-10-30 05:17:22 +0000 | [diff] [blame] | 15 | __all__ = ["iskeyword", "kwlist"] |
Skip Montanaro | 17ab123 | 2001-01-24 06:27:27 +0000 | [diff] [blame] | 16 | |
Guido van Rossum | eb8c972 | 1997-03-20 19:45:51 +0000 | [diff] [blame] | 17 | kwlist = [ |
Pablo Galindo | 91759d9 | 2019-03-25 22:01:12 +0000 | [diff] [blame] | 18 | 'False', |
| 19 | 'None', |
| 20 | 'True', |
| 21 | 'and', |
| 22 | 'as', |
| 23 | 'assert', |
| 24 | 'async', |
| 25 | 'await', |
| 26 | 'break', |
| 27 | 'class', |
| 28 | 'continue', |
| 29 | 'def', |
| 30 | 'del', |
| 31 | 'elif', |
| 32 | 'else', |
| 33 | 'except', |
| 34 | 'finally', |
| 35 | 'for', |
| 36 | 'from', |
| 37 | 'global', |
| 38 | 'if', |
| 39 | 'import', |
| 40 | 'in', |
| 41 | 'is', |
| 42 | 'lambda', |
| 43 | 'nonlocal', |
| 44 | 'not', |
| 45 | 'or', |
| 46 | 'pass', |
| 47 | 'raise', |
| 48 | 'return', |
| 49 | 'try', |
| 50 | 'while', |
| 51 | 'with', |
| 52 | 'yield' |
| 53 | ] |
Guido van Rossum | 495da29 | 2019-03-07 12:38:08 -0800 | [diff] [blame] | 54 | |
Raymond Hettinger | 70ef869 | 2003-12-02 07:48:15 +0000 | [diff] [blame] | 55 | iskeyword = frozenset(kwlist).__contains__ |