summaryrefslogtreecommitdiffstats
path: root/Parser/pgen/token.py
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/pgen/token.py')
-rw-r--r--Parser/pgen/token.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Parser/pgen/token.py b/Parser/pgen/token.py
index e7e8f3f..2cff62c 100644
--- a/Parser/pgen/token.py
+++ b/Parser/pgen/token.py
@@ -6,21 +6,21 @@ def generate_tokens(tokens):
for line in tokens:
line = line.strip()
- if not line or line.startswith('#'):
+ if not line or line.startswith("#"):
continue
name = line.split()[0]
yield (name, next(numbers))
- yield ('N_TOKENS', next(numbers))
- yield ('NT_OFFSET', 256)
+ yield ("N_TOKENS", next(numbers))
+ yield ("NT_OFFSET", 256)
def generate_opmap(tokens):
for line in tokens:
line = line.strip()
- if not line or line.startswith('#'):
+ if not line or line.startswith("#"):
continue
pieces = line.split()
@@ -35,4 +35,4 @@ def generate_opmap(tokens):
# with the token generation in "generate_tokens" because if this
# symbol is included in Grammar/Tokens, it will collide with !=
# as it has the same name (NOTEQUAL).
- yield ('<>', 'NOTEQUAL')
+ yield ("<>", "NOTEQUAL")