start with the integration of an Operator class to make way for precedences

This commit is contained in:
Dave Halter committed 2014-02-26 14:44:51 +01:00
1 parent e152939791
commit 2e12eb7861
5 files changed
+60 -45

No files matched your search

+4 -1
View File
@@ -317,7 +317,10 @@ class Parser(object):
or tok.string in breaks and level <= 0):
try:
# print 'parse_stmt', tok, tokenize.tok_name[token_type]
tok_list.append(tok)
if tok.type == tokenize.OP:
tok_list.append(pr.Operator(tok.string, tok.start_pos))
else:
tok_list.append(tok)
if tok.string == 'as':
tok = next(self._gen)
if tok.type == tokenize.NAME: