Remove XXXes from the pgen2 code.

This commit is contained in:
Georg Brandl 2010-01-17 19:39:51 +01:00
parent 98bcd2fab4
commit e61a7b7fcf
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class Driver(object):
def parse_tokens(self, tokens, debug=False):
"""Parse a series of tokens and return the syntax tree."""
# XXX Move the prefix computation into a wrapper around tokenize.
# X X X Move the prefix computation into a wrapper around tokenize.
p = parse.Parser(self.grammar, self.convert)
p.setup()
lineno = 1

View File

@ -54,12 +54,12 @@ class ParserGenerator(object):
first = {}
for label in rawfirst:
ilabel = self.make_label(c, label)
##assert ilabel not in first # XXX failed on <> ... !=
##assert ilabel not in first # X X X failed on <> ... !=
first[ilabel] = 1
return first
def make_label(self, c, label):
# XXX Maybe this should be a method on a subclass of converter?
# X X X Maybe this should be a method on a subclass of converter?
ilabel = len(c.labels)
if label[0].isalpha():
# Either a symbol name or a named token