1.1 --- a/pyparser/parser.py Sun Jan 08 20:20:39 2017 +0100
1.2 +++ b/pyparser/parser.py Sun Jan 08 21:15:30 2017 +0100
1.3 @@ -164,6 +164,14 @@
1.4 assert 0, "should be unreachable"
1.5
1.6
1.7 +class NonterminalEnc(Nonterminal1):
1.8 + def __init__(self, type, child, encoding):
1.9 + Nonterminal1.__init__(self, type, child)
1.10 + self.encoding = encoding
1.11 +
1.12 + def __repr__(self):
1.13 + return "NonterminalEnc(type=%s, child=%r, encoding=%r)" % (self.type, self._child, self.encoding)
1.14 +
1.15
1.16 class ParseError(Exception):
1.17