| 1 |
from __future__ import print_function |
| 2 |
|
| 3 |
import py |
| 4 |
|
| 5 |
from rpython.rlib.parsing.parsing import PackratParser, Rule |
| 6 |
from rpython.rlib.parsing.tree import Nonterminal, RPythonVisitor |
| 7 |
from rpython.rlib.parsing.codebuilder import Codebuilder |
| 8 |
from rpython.rlib.parsing.regexparse import parse_regex |
| 9 |
from rpython.rlib.parsing.regex import StringExpression |
| 10 |
from rpython.rlib.parsing.deterministic import DFA |
| 11 |
from rpython.rlib.parsing.lexer import Lexer, DummyLexer |
| 12 |
from rpython.rlib.objectmodel import we_are_translated |
| 13 |
|
| 14 |
|
| 15 |
def make_ebnf_parser(): |
| 16 |
NONTERMINALNAME = parse_regex("([a-z]|_)[a-z0-9_]*") |
| 17 |
SYMBOLNAME = parse_regex("_*[A-Z]([A-Z]|_)*") |
| 18 |
LONGQUOTED = parse_regex(r'"[^\"]*(\\\"?[^\"]+)*(\\\")?"') |
| 19 |
QUOTEDQUOTE = parse_regex("""'"'""") |
| 20 |
COMMENT = parse_regex("#[^\\n]*\\n") |
| 21 |
names1 = ['SYMBOLNAME', 'NONTERMINALNAME', 'QUOTE', 'QUOTE', 'IGNORE', |
| 22 |
'IGNORE', 'IGNORE', 'IGNORE'] |
| 23 |
regexs1 = [SYMBOLNAME, NONTERMINALNAME, LONGQUOTED, QUOTEDQUOTE, COMMENT, |
| 24 |
StringExpression('\n'), StringExpression(' '), |
| 25 |
StringExpression('\t')] |
| 26 |
rs, rules, transformer = parse_ebnf(r""" |
| 27 |
file: list EOF; |
| 28 |
list: element+; |
| 29 |
element: <regex> | <production>; |
| 30 |
regex: SYMBOLNAME ":" QUOTE ";"; |
| 31 |
production: NONTERMINALNAME ":" body? ";"; |
| 32 |
body: (expansion ["|"])* expansion; |
| 33 |
expansion: decorated+; |
| 34 |
decorated: enclosed "*" | |
| 35 |
enclosed "+" | |
| 36 |
enclosed "?" | |
| 37 |
<enclosed>; |
| 38 |
enclosed: "[" expansion "]" | |
| 39 |
">" expansion "<" | |
| 40 |
"<" primary ">" | |
| 41 |
"(" <expansion> ")" | |
| 42 |
<primary>; |
| 43 |
primary: NONTERMINALNAME | SYMBOLNAME | QUOTE; |
| 44 |
""") |
| 45 |
names2, regexs2 = zip(*rs) |
| 46 |
lexer = Lexer(regexs1 + list(regexs2), names1 + list(names2), |
| 47 |
ignore=['IGNORE']) |
| 48 |
parser = PackratParser(rules, "file") |
| 49 |
return parser, lexer, transformer |
| 50 |
|
| 51 |
def parse_ebnf(s): |
| 52 |
visitor = ParserBuilder() |
| 53 |
tokens = lexer.tokenize(s, True) |
| 54 |
|
| 55 |
s = parser.parse(tokens) |
| 56 |
s = s.visit(EBNFToAST()) |
| 57 |
assert len(s) == 1 |
| 58 |
s = s[0] |
| 59 |
s.visit(visitor) |
| 60 |
|
| 61 |
rules, changes = visitor.get_rules_and_changes() |
| 62 |
maker = TransformerMaker(rules, changes) |
| 63 |
ToAstVisitor = maker.make_transformer() |
| 64 |
return zip(visitor.names, visitor.regexs), rules, ToAstVisitor |
| 65 |
|
| 66 |
def check_for_missing_names(names, regexs, rules): |
| 67 |
known_names = dict.fromkeys(names, True) |
| 68 |
known_names["EOF"] = True |
| 69 |
for rule in rules: |
| 70 |
known_names[rule.nonterminal] = True |
| 71 |
for rule in rules: |
| 72 |
for expansion in rule.expansions: |
| 73 |
for symbol in expansion: |
| 74 |
if symbol not in known_names: |
| 75 |
raise ValueError("symbol '%s' not known" % (symbol, )) |
| 76 |
|
| 77 |
def make_parse_function(regexs, rules, eof=False): |
| 78 |
from rpython.rlib.parsing.lexer import Lexer |
| 79 |
names, regexs = zip(*regexs) |
| 80 |
if "IGNORE" in names: |
| 81 |
ignore = ["IGNORE"] |
| 82 |
else: |
| 83 |
ignore = [] |
| 84 |
check_for_missing_names(names, regexs, rules) |
| 85 |
lexer = Lexer(list(regexs), list(names), ignore=ignore) |
| 86 |
parser = PackratParser(rules, rules[0].nonterminal) |
| 87 |
def parse(s): |
| 88 |
tokens = lexer.tokenize(s, eof=eof) |
| 89 |
s = parser.parse(tokens) |
| 90 |
if not we_are_translated(): |
| 91 |
try: |
| 92 |
if py.test.config.option.view: |
| 93 |
s.view() |
| 94 |
except AttributeError: |
| 95 |
pass |
| 96 |
|
| 97 |
return s |
| 98 |
return parse |
| 99 |
|
| 100 |
class ParserBuilder(object): |
| 101 |
def __init__(self): |
| 102 |
self.regexs = [] |
| 103 |
self.names = [] |
| 104 |
self.rules = [] |
| 105 |
self.changes = [] |
| 106 |
self.maybe_rules = {} |
| 107 |
self.num_plus_symbols = 0 |
| 108 |
self.first_rule = None |
| 109 |
self.literals = {} |
| 110 |
|
| 111 |
def visit_file(self, node): |
| 112 |
return node.children[0].visit(self) |
| 113 |
|
| 114 |
def visit_list(self, node): |
| 115 |
for child in node.children: |
| 116 |
child.visit(self) |
| 117 |
|
| 118 |
def visit_regex(self, node): |
| 119 |
regextext = node.children[2].additional_info[1:-1].replace('\\"', '"') |
| 120 |
regex = parse_regex(regextext) |
| 121 |
if regex is None: |
| 122 |
raise ValueError( |
| 123 |
"%s is not a valid regular expression" % regextext) |
| 124 |
self.regexs.append(regex) |
| 125 |
self.names.append(node.children[0].additional_info) |
| 126 |
|
| 127 |
def visit_production(self, node): |
| 128 |
name = node.children[0].additional_info |
| 129 |
if len(node.children) == 3: |
| 130 |
self.changes.append([]) |
| 131 |
self.rules.append(Rule(name, [[]])) |
| 132 |
return |
| 133 |
expansions = node.children[2].visit(self) |
| 134 |
changes = [] |
| 135 |
rule_expansions = [] |
| 136 |
for expansion in expansions: |
| 137 |
expansion, change = zip(*expansion) |
| 138 |
rule_expansions.append(list(expansion)) |
| 139 |
changes.append("".join(change)) |
| 140 |
if self.first_rule is None: |
| 141 |
self.first_rule = name |
| 142 |
self.changes.append(changes) |
| 143 |
self.rules.append(Rule(name, rule_expansions)) |
| 144 |
|
| 145 |
def visit_body(self, node): |
| 146 |
expansions = [] |
| 147 |
for child in node.children: |
| 148 |
expansion = child.visit(self) |
| 149 |
expansions.append(expansion) |
| 150 |
return expansions |
| 151 |
|
| 152 |
def visit_expansion(self, node): |
| 153 |
expansions = [] |
| 154 |
for child in node.children: |
| 155 |
expansion = child.visit(self) |
| 156 |
expansions += expansion |
| 157 |
return expansions |
| 158 |
|
| 159 |
def visit_enclosed(self, node): |
| 160 |
result = [] |
| 161 |
newchange = node.children[0].additional_info |
| 162 |
for name, change in node.children[1].visit(self): |
| 163 |
assert change == " " or change == newchange |
| 164 |
result.append((name, newchange)) |
| 165 |
return result |
| 166 |
|
| 167 |
def visit_decorated(self, node): |
| 168 |
expansions = node.children[0].visit(self) |
| 169 |
expansions, changes = zip(*expansions) |
| 170 |
expansions, changes = list(expansions), "".join(changes) |
| 171 |
if node.children[1].additional_info == "*": |
| 172 |
name = "_star_symbol%s" % (len(self.maybe_rules), ) |
| 173 |
maybe_rule = True |
| 174 |
expansions = [expansions + [name]] |
| 175 |
changes = [changes + ">", changes] |
| 176 |
elif node.children[1].additional_info == "+": |
| 177 |
name = "_plus_symbol%s" % (self.num_plus_symbols, ) |
| 178 |
self.num_plus_symbols += 1 |
| 179 |
maybe_rule = False |
| 180 |
expansions = [expansions + [name], expansions] |
| 181 |
changes = [changes + ">", changes] |
| 182 |
elif node.children[1].additional_info == "?": |
| 183 |
name = "_maybe_symbol%s" % (len(self.maybe_rules), ) |
| 184 |
maybe_rule = True |
| 185 |
expansions = [expansions] |
| 186 |
changes = [changes] |
| 187 |
self.rules.append(Rule(name, expansions)) |
| 188 |
self.changes.append(changes) |
| 189 |
if maybe_rule: |
| 190 |
self.maybe_rules[name] = self.rules[-1] |
| 191 |
return [(name, ">")] |
| 192 |
|
| 193 |
def visit_primary_parens(self, node): |
| 194 |
if len(node.children) == 1: |
| 195 |
return node.children[0].visit(self) |
| 196 |
else: |
| 197 |
return node.children[1].visit(self) |
| 198 |
|
| 199 |
def visit_primary(self, node): |
| 200 |
if node.children[0].symbol == "QUOTE": |
| 201 |
from rpython.rlib.parsing.regexparse import unescape |
| 202 |
content = node.children[0].additional_info[1:-1] |
| 203 |
expression = unescape(content) |
| 204 |
name = self.get_literal_name(expression) |
| 205 |
return [(name, " ")] |
| 206 |
else: |
| 207 |
return [(node.children[0].additional_info, " ")] |
| 208 |
|
| 209 |
def get_literal_name(self, expression): |
| 210 |
if expression in self.literals: |
| 211 |
return self.literals[expression] |
| 212 |
name = "__%s_%s" % (len(self.literals), expression) |
| 213 |
self.literals[expression] = name |
| 214 |
self.regexs.insert(0, StringExpression(expression)) |
| 215 |
self.names.insert(0, name) |
| 216 |
return name |
| 217 |
|
| 218 |
def get_rules_and_changes(self): |
| 219 |
self.fix_rule_order() |
| 220 |
return self.add_all_possibilities() |
| 221 |
|
| 222 |
def fix_rule_order(self): |
| 223 |
if self.rules[0].nonterminal != self.first_rule: |
| 224 |
for i, r in enumerate(self.rules): |
| 225 |
if r.nonterminal == self.first_rule: |
| 226 |
break |
| 227 |
self.rules[i], self.rules[0] = self.rules[0], self.rules[i] |
| 228 |
self.changes[i], self.changes[0] = self.changes[0], self.changes[i] |
| 229 |
|
| 230 |
def add_all_possibilities(self): |
| 231 |
all_rules = [] |
| 232 |
other_rules = [] |
| 233 |
all_changes = [] |
| 234 |
other_changes = [] |
| 235 |
for rule, changes in zip(self.rules, self.changes): |
| 236 |
if rule.expansions == [[]]: |
| 237 |
all_rules.append(rule) |
| 238 |
all_changes.append([]) |
| 239 |
continue |
| 240 |
real_changes = [] |
| 241 |
real_expansions = [] |
| 242 |
for index, (expansion, change) in enumerate( |
| 243 |
zip(rule.expansions, changes)): |
| 244 |
maybe_pattern = [symbol in self.maybe_rules |
| 245 |
for symbol in expansion] |
| 246 |
n = maybe_pattern.count(True) |
| 247 |
if n == 0: |
| 248 |
real_expansions.append(expansion) |
| 249 |
real_changes.append(change) |
| 250 |
continue |
| 251 |
if n == len(expansion): |
| 252 |
raise ValueError("Rule %r's expansion needs " |
| 253 |
"at least one symbol with >0 repetitions" |
| 254 |
% rule.nonterminal) |
| 255 |
slices = [] |
| 256 |
start = 0 |
| 257 |
for i, (maybe, symbol) in enumerate( |
| 258 |
zip(maybe_pattern, expansion)): |
| 259 |
if maybe: |
| 260 |
slices.append((start, i + 1)) |
| 261 |
start = i + 1 |
| 262 |
rest_slice = (start, i + 1) |
| 263 |
name = rule.nonterminal |
| 264 |
for i, (start, stop) in enumerate(slices): |
| 265 |
nextname = "__%s_rest_%s_%s" % (rule.nonterminal, index, i) |
| 266 |
if i < len(slices) - 1: |
| 267 |
new_expansions = [ |
| 268 |
expansion[start: stop] + [nextname], |
| 269 |
expansion[start: stop - 1] + [nextname]] |
| 270 |
new_changes = [change[start: stop] + ">", |
| 271 |
change[start: stop - 1] + ">"] |
| 272 |
else: |
| 273 |
rest_expansion = expansion[slice(*rest_slice)] |
| 274 |
new_expansions = [ |
| 275 |
expansion[start: stop] + rest_expansion, |
| 276 |
expansion[start: stop - 1] + rest_expansion] |
| 277 |
rest_change = change[slice(*rest_slice)] |
| 278 |
new_changes = [change[start: stop] + rest_change, |
| 279 |
change[start: stop - 1] + rest_change] |
| 280 |
if i == 0: |
| 281 |
real_expansions += new_expansions |
| 282 |
real_changes += new_changes |
| 283 |
else: |
| 284 |
other_rules.append(Rule(name, new_expansions)) |
| 285 |
other_changes.append(new_changes) |
| 286 |
name = nextname |
| 287 |
all_rules.append(Rule(rule.nonterminal, real_expansions)) |
| 288 |
all_changes.append(real_changes) |
| 289 |
return all_rules + other_rules, all_changes + other_changes |
| 290 |
|
| 291 |
class TransformerMaker(Codebuilder): |
| 292 |
def __init__(self, rules, changes): |
| 293 |
Codebuilder.__init__(self) |
| 294 |
self.rules = rules |
| 295 |
self.changes = changes |
| 296 |
self.nonterminals = dict.fromkeys([rule.nonterminal for rule in rules]) |
| 297 |
|
| 298 |
def make_transformer(self, print_code=False): |
| 299 |
self.start_block("class ToAST(object):") |
| 300 |
for i in range(len(self.rules)): |
| 301 |
self.create_visit_method(i) |
| 302 |
self.start_block("def transform(self, tree):") |
| 303 |
self.emit("#auto-generated code, don't edit") |
| 304 |
self.emit("assert isinstance(tree, Nonterminal)") |
| 305 |
startsymbol = self.rules[0].nonterminal |
| 306 |
self.emit("assert tree.symbol == %r" % (startsymbol, )) |
| 307 |
self.emit("r = self.visit_%s(tree)" % (startsymbol, )) |
| 308 |
self.emit("assert len(r) == 1") |
| 309 |
self.start_block("if not we_are_translated():") |
| 310 |
self.start_block("try:") |
| 311 |
self.start_block("if py.test.config.option.view:") |
| 312 |
self.emit("r[0].view()") |
| 313 |
self.end_block("option.view") |
| 314 |
self.end_block("try") |
| 315 |
self.start_block("except AttributeError:") |
| 316 |
self.emit("pass") |
| 317 |
self.end_block("except") |
| 318 |
self.end_block("we_are_translated") |
| 319 |
self.emit("return r[0]") |
| 320 |
self.end_block("transform") |
| 321 |
self.end_block("ToAST") |
| 322 |
code = self.get_code() |
| 323 |
if print_code: |
| 324 |
print(code) |
| 325 |
ns = {"RPythonVisitor": RPythonVisitor, "Nonterminal": Nonterminal, |
| 326 |
"we_are_translated": we_are_translated, "py": py} |
| 327 |
exec(py.code.Source(code).compile(), ns) |
| 328 |
ToAST = ns["ToAST"] |
| 329 |
ToAST.__module__ = "rpython.rlib.parsing.ebnfparse" |
| 330 |
assert isinstance(ToAST, type) |
| 331 |
assert ToAST.__name__ == "ToAST" |
| 332 |
ToAST.source = code |
| 333 |
ToAST.changes = self.changes |
| 334 |
return ToAST |
| 335 |
|
| 336 |
def dispatch(self, symbol, expr): |
| 337 |
if symbol in self.nonterminals: |
| 338 |
return "self.visit_%s(%s)" % (symbol, expr) |
| 339 |
return "[%s]" % (expr, ) |
| 340 |
|
| 341 |
def create_visit_method(self, index): |
| 342 |
rule = self.rules[index] |
| 343 |
change = self.changes[index] |
| 344 |
self.start_block("def visit_%s(self, node):" % (rule.nonterminal, )) |
| 345 |
self.emit("#auto-generated code, don't edit") |
| 346 |
if len(change) == 0: |
| 347 |
self.emit("return [node]") |
| 348 |
self.end_block(rule.nonterminal) |
| 349 |
return |
| 350 |
for expansion, subchange in self.generate_conditions(index): |
| 351 |
if "<" in subchange: |
| 352 |
i = subchange.index("<") |
| 353 |
assert subchange.count("<") == 1, ( |
| 354 |
"cannot expand more than one node in rule %s" % (rule, )) |
| 355 |
i = subchange.index("<") |
| 356 |
returnval = self.dispatch( |
| 357 |
expansion[i], "node.children[%s]" % (i, )) |
| 358 |
self.emit("return " + returnval) |
| 359 |
else: |
| 360 |
self.create_returning_code(expansion, subchange) |
| 361 |
self.end_block(rule.nonterminal) |
| 362 |
|
| 363 |
def create_returning_code(self, expansion, subchange): |
| 364 |
assert len(expansion) == len(subchange) |
| 365 |
self.emit("children = []") |
| 366 |
for i, (symbol, c) in enumerate(zip(expansion, subchange)): |
| 367 |
if c == "[": |
| 368 |
continue |
| 369 |
expr = self.dispatch(symbol, "node.children[%s]" % (i, )) |
| 370 |
if c == " ": |
| 371 |
self.emit("children.extend(%s)" % (expr, )) |
| 372 |
if c == ">": |
| 373 |
self.emit("expr = %s" % (expr, )) |
| 374 |
self.emit("assert len(expr) == 1") |
| 375 |
self.emit("children.extend(expr[0].children)") |
| 376 |
self.emit("return [Nonterminal(node.symbol, children)]") |
| 377 |
|
| 378 |
def generate_conditions(self, index): |
| 379 |
rule = self.rules[index] |
| 380 |
change = self.changes[index] |
| 381 |
len_partition = {} |
| 382 |
if len(rule.expansions) == 1: |
| 383 |
yield rule.expansions[0], change[0] |
| 384 |
return |
| 385 |
for expansion, subchange in zip(rule.expansions, change): |
| 386 |
len_partition.setdefault(len(expansion), []).append( |
| 387 |
(expansion, subchange)) |
| 388 |
len_partition = len_partition.items() |
| 389 |
len_partition.sort() |
| 390 |
last_length = len_partition[-1][0] |
| 391 |
self.emit("length = len(node.children)") |
| 392 |
for length, items in len_partition: |
| 393 |
if length < last_length: |
| 394 |
self.start_block("if length == %s:" % (length, )) |
| 395 |
if len(items) == 1: |
| 396 |
yield items[0] |
| 397 |
if length < last_length: |
| 398 |
self.end_block("if length ==") |
| 399 |
continue |
| 400 |
|
| 401 |
while items: |
| 402 |
shorter = False |
| 403 |
for i in range(length): |
| 404 |
symbols = {} |
| 405 |
for pos, item in enumerate(items): |
| 406 |
expansion = item[0] |
| 407 |
symbol = expansion[i] |
| 408 |
symbols.setdefault(symbol, []).append((pos, item)) |
| 409 |
symbols = symbols.items() |
| 410 |
symbols.sort() |
| 411 |
remove = [] |
| 412 |
for symbol, subitems in symbols: |
| 413 |
if (len(subitems) == 1 and |
| 414 |
(len(items) - len(remove)) > 1): |
| 415 |
self.start_block( |
| 416 |
"if node.children[%s].symbol == %r:" % ( |
| 417 |
i, symbol)) |
| 418 |
pos, subitem = subitems[0] |
| 419 |
yield subitem |
| 420 |
remove.append(pos) |
| 421 |
shorter = True |
| 422 |
self.end_block("if node.children[") |
| 423 |
remove.sort() |
| 424 |
for pos in remove[::-1]: |
| 425 |
items.pop(pos) |
| 426 |
if shorter: |
| 427 |
if len(items) == 1: |
| 428 |
yield items[0] |
| 429 |
items.pop(0) |
| 430 |
else: |
| 431 |
continue |
| 432 |
break |
| 433 |
|
| 434 |
|
| 435 |
assert len(items) != 1 |
| 436 |
for expansion, subchange in items: |
| 437 |
conds = [] |
| 438 |
for i, symbol in enumerate(expansion): |
| 439 |
conds.append("node.children[%s].symbol == %r" % ( |
| 440 |
i, symbol)) |
| 441 |
self.start_block("if (%s):" % (" and ".join(conds), )) |
| 442 |
yield expansion, subchange |
| 443 |
self.end_block("if") |
| 444 |
if length < last_length: |
| 445 |
self.end_block("if length ==") |
| 446 |
|
| 447 |
|
| 448 |
|
| 449 |
|
| 450 |
class EBNFToAST(object): |
| 451 |
def visit_file(self, node): |
| 452 |
|
| 453 |
children = [] |
| 454 |
children.extend(self.visit_list(node.children[0])) |
| 455 |
children.extend([node.children[1]]) |
| 456 |
return [Nonterminal(node.symbol, children)] |
| 457 |
def visit__plus_symbol0(self, node): |
| 458 |
|
| 459 |
length = len(node.children) |
| 460 |
if length == 1: |
| 461 |
children = [] |
| 462 |
children.extend(self.visit_element(node.children[0])) |
| 463 |
return [Nonterminal(node.symbol, children)] |
| 464 |
children = [] |
| 465 |
children.extend(self.visit_element(node.children[0])) |
| 466 |
expr = self.visit__plus_symbol0(node.children[1]) |
| 467 |
assert len(expr) == 1 |
| 468 |
children.extend(expr[0].children) |
| 469 |
return [Nonterminal(node.symbol, children)] |
| 470 |
def visit_list(self, node): |
| 471 |
|
| 472 |
children = [] |
| 473 |
expr = self.visit__plus_symbol0(node.children[0]) |
| 474 |
assert len(expr) == 1 |
| 475 |
children.extend(expr[0].children) |
| 476 |
return [Nonterminal(node.symbol, children)] |
| 477 |
def visit_element(self, node): |
| 478 |
|
| 479 |
length = len(node.children) |
| 480 |
if node.children[0].symbol == 'production': |
| 481 |
return self.visit_production(node.children[0]) |
| 482 |
return self.visit_regex(node.children[0]) |
| 483 |
def visit_regex(self, node): |
| 484 |
|
| 485 |
children = [] |
| 486 |
children.extend([node.children[0]]) |
| 487 |
children.extend([node.children[1]]) |
| 488 |
children.extend([node.children[2]]) |
| 489 |
children.extend([node.children[3]]) |
| 490 |
return [Nonterminal(node.symbol, children)] |
| 491 |
def visit__maybe_symbol0(self, node): |
| 492 |
|
| 493 |
children = [] |
| 494 |
children.extend(self.visit_body(node.children[0])) |
| 495 |
return [Nonterminal(node.symbol, children)] |
| 496 |
def visit_production(self, node): |
| 497 |
|
| 498 |
length = len(node.children) |
| 499 |
if length == 3: |
| 500 |
children = [] |
| 501 |
children.extend([node.children[0]]) |
| 502 |
children.extend([node.children[1]]) |
| 503 |
children.extend([node.children[2]]) |
| 504 |
return [Nonterminal(node.symbol, children)] |
| 505 |
children = [] |
| 506 |
children.extend([node.children[0]]) |
| 507 |
children.extend([node.children[1]]) |
| 508 |
expr = self.visit__maybe_symbol0(node.children[2]) |
| 509 |
assert len(expr) == 1 |
| 510 |
children.extend(expr[0].children) |
| 511 |
children.extend([node.children[3]]) |
| 512 |
return [Nonterminal(node.symbol, children)] |
| 513 |
def visit__star_symbol1(self, node): |
| 514 |
|
| 515 |
length = len(node.children) |
| 516 |
if length == 2: |
| 517 |
children = [] |
| 518 |
children.extend(self.visit_expansion(node.children[0])) |
| 519 |
return [Nonterminal(node.symbol, children)] |
| 520 |
children = [] |
| 521 |
children.extend(self.visit_expansion(node.children[0])) |
| 522 |
expr = self.visit__star_symbol1(node.children[2]) |
| 523 |
assert len(expr) == 1 |
| 524 |
children.extend(expr[0].children) |
| 525 |
return [Nonterminal(node.symbol, children)] |
| 526 |
def visit_body(self, node): |
| 527 |
|
| 528 |
length = len(node.children) |
| 529 |
if length == 1: |
| 530 |
children = [] |
| 531 |
children.extend(self.visit_expansion(node.children[0])) |
| 532 |
return [Nonterminal(node.symbol, children)] |
| 533 |
children = [] |
| 534 |
expr = self.visit__star_symbol1(node.children[0]) |
| 535 |
assert len(expr) == 1 |
| 536 |
children.extend(expr[0].children) |
| 537 |
children.extend(self.visit_expansion(node.children[1])) |
| 538 |
return [Nonterminal(node.symbol, children)] |
| 539 |
def visit__plus_symbol1(self, node): |
| 540 |
|
| 541 |
length = len(node.children) |
| 542 |
if length == 1: |
| 543 |
children = [] |
| 544 |
children.extend(self.visit_decorated(node.children[0])) |
| 545 |
return [Nonterminal(node.symbol, children)] |
| 546 |
children = [] |
| 547 |
children.extend(self.visit_decorated(node.children[0])) |
| 548 |
expr = self.visit__plus_symbol1(node.children[1]) |
| 549 |
assert len(expr) == 1 |
| 550 |
children.extend(expr[0].children) |
| 551 |
return [Nonterminal(node.symbol, children)] |
| 552 |
def visit_expansion(self, node): |
| 553 |
|
| 554 |
children = [] |
| 555 |
expr = self.visit__plus_symbol1(node.children[0]) |
| 556 |
assert len(expr) == 1 |
| 557 |
children.extend(expr[0].children) |
| 558 |
return [Nonterminal(node.symbol, children)] |
| 559 |
def visit_decorated(self, node): |
| 560 |
|
| 561 |
length = len(node.children) |
| 562 |
if length == 1: |
| 563 |
return self.visit_enclosed(node.children[0]) |
| 564 |
if node.children[1].symbol == '__3_*': |
| 565 |
children = [] |
| 566 |
children.extend(self.visit_enclosed(node.children[0])) |
| 567 |
children.extend([node.children[1]]) |
| 568 |
return [Nonterminal(node.symbol, children)] |
| 569 |
if node.children[1].symbol == '__4_+': |
| 570 |
children = [] |
| 571 |
children.extend(self.visit_enclosed(node.children[0])) |
| 572 |
children.extend([node.children[1]]) |
| 573 |
return [Nonterminal(node.symbol, children)] |
| 574 |
children = [] |
| 575 |
children.extend(self.visit_enclosed(node.children[0])) |
| 576 |
children.extend([node.children[1]]) |
| 577 |
return [Nonterminal(node.symbol, children)] |
| 578 |
def visit_enclosed(self, node): |
| 579 |
|
| 580 |
length = len(node.children) |
| 581 |
if length == 1: |
| 582 |
return self.visit_primary(node.children[0]) |
| 583 |
if node.children[0].symbol == '__10_(': |
| 584 |
return self.visit_expansion(node.children[1]) |
| 585 |
if node.children[0].symbol == '__6_[': |
| 586 |
children = [] |
| 587 |
children.extend([node.children[0]]) |
| 588 |
children.extend(self.visit_expansion(node.children[1])) |
| 589 |
children.extend([node.children[2]]) |
| 590 |
return [Nonterminal(node.symbol, children)] |
| 591 |
if node.children[0].symbol == '__8_>': |
| 592 |
children = [] |
| 593 |
children.extend([node.children[0]]) |
| 594 |
children.extend(self.visit_expansion(node.children[1])) |
| 595 |
children.extend([node.children[2]]) |
| 596 |
return [Nonterminal(node.symbol, children)] |
| 597 |
children = [] |
| 598 |
children.extend([node.children[0]]) |
| 599 |
children.extend(self.visit_primary(node.children[1])) |
| 600 |
children.extend([node.children[2]]) |
| 601 |
return [Nonterminal(node.symbol, children)] |
| 602 |
def visit_primary(self, node): |
| 603 |
|
| 604 |
length = len(node.children) |
| 605 |
if node.children[0].symbol == 'NONTERMINALNAME': |
| 606 |
children = [] |
| 607 |
children.extend([node.children[0]]) |
| 608 |
return [Nonterminal(node.symbol, children)] |
| 609 |
if node.children[0].symbol == 'QUOTE': |
| 610 |
children = [] |
| 611 |
children.extend([node.children[0]]) |
| 612 |
return [Nonterminal(node.symbol, children)] |
| 613 |
children = [] |
| 614 |
children.extend([node.children[0]]) |
| 615 |
return [Nonterminal(node.symbol, children)] |
| 616 |
def transform(self, tree): |
| 617 |
|
| 618 |
assert isinstance(tree, Nonterminal) |
| 619 |
assert tree.symbol == 'file' |
| 620 |
r = self.visit_file(tree) |
| 621 |
assert len(r) == 1 |
| 622 |
if not we_are_translated(): |
| 623 |
try: |
| 624 |
if py.test.config.option.view: |
| 625 |
r[0].view() |
| 626 |
except AttributeError: |
| 627 |
pass |
| 628 |
return r[0] |
| 629 |
parser = PackratParser([Rule('file', [['list', 'EOF']]), |
| 630 |
Rule('_plus_symbol0', [['element', '_plus_symbol0'], ['element']]), |
| 631 |
Rule('list', [['_plus_symbol0']]), |
| 632 |
Rule('element', [['regex'], ['production']]), |
| 633 |
Rule('regex', [['SYMBOLNAME', '__0_:', 'QUOTE', '__1_;']]), |
| 634 |
Rule('_maybe_symbol0', [['body']]), |
| 635 |
Rule('production', [['NONTERMINALNAME', '__0_:', '_maybe_symbol0', '__1_;'], ['NONTERMINALNAME', '__0_:', '__1_;']]), |
| 636 |
Rule('_star_symbol1', [['expansion', '__2_|', '_star_symbol1'], ['expansion', '__2_|']]), |
| 637 |
Rule('body', [['_star_symbol1', 'expansion'], ['expansion']]), |
| 638 |
Rule('_plus_symbol1', [['decorated', '_plus_symbol1'], ['decorated']]), |
| 639 |
Rule('expansion', [['_plus_symbol1']]), |
| 640 |
Rule('decorated', [['enclosed', '__3_*'], ['enclosed', '__4_+'], ['enclosed', '__5_?'], ['enclosed']]), |
| 641 |
Rule('enclosed', [['__6_[', 'expansion', '__7_]'], ['__8_>', 'expansion', '__9_<'], ['__9_<', 'primary', '__8_>'], ['__10_(', 'expansion', '__11_)'], ['primary']]), |
| 642 |
Rule('primary', [['NONTERMINALNAME'], ['SYMBOLNAME'], ['QUOTE']])], |
| 643 |
'file') |
| 644 |
def recognize(runner, i): |
| 645 |
assert i >= 0 |
| 646 |
input = runner.text |
| 647 |
state = 0 |
| 648 |
while 1: |
| 649 |
if state == 0: |
| 650 |
try: |
| 651 |
char = input[i] |
| 652 |
i += 1 |
| 653 |
except IndexError: |
| 654 |
runner.state = 0 |
| 655 |
return ~i |
| 656 |
if char == '\t': |
| 657 |
state = 1 |
| 658 |
elif char == '\n': |
| 659 |
state = 2 |
| 660 |
elif char == ' ': |
| 661 |
state = 3 |
| 662 |
elif char == '#': |
| 663 |
state = 4 |
| 664 |
elif char == '"': |
| 665 |
state = 5 |
| 666 |
elif char == "'": |
| 667 |
state = 6 |
| 668 |
elif char == ')': |
| 669 |
state = 7 |
| 670 |
elif char == '(': |
| 671 |
state = 8 |
| 672 |
elif char == '+': |
| 673 |
state = 9 |
| 674 |
elif char == '*': |
| 675 |
state = 10 |
| 676 |
elif char == ';': |
| 677 |
state = 11 |
| 678 |
elif char == ':': |
| 679 |
state = 12 |
| 680 |
elif char == '<': |
| 681 |
state = 13 |
| 682 |
elif char == '?': |
| 683 |
state = 14 |
| 684 |
elif char == '>': |
| 685 |
state = 15 |
| 686 |
elif 'A' <= char <= 'Z': |
| 687 |
state = 16 |
| 688 |
elif char == '[': |
| 689 |
state = 17 |
| 690 |
elif char == ']': |
| 691 |
state = 18 |
| 692 |
elif char == '_': |
| 693 |
state = 19 |
| 694 |
elif 'a' <= char <= 'z': |
| 695 |
state = 20 |
| 696 |
elif char == '|': |
| 697 |
state = 21 |
| 698 |
else: |
| 699 |
break |
| 700 |
if state == 4: |
| 701 |
try: |
| 702 |
char = input[i] |
| 703 |
i += 1 |
| 704 |
except IndexError: |
| 705 |
runner.state = 4 |
| 706 |
return ~i |
| 707 |
if char == '\n': |
| 708 |
state = 27 |
| 709 |
elif '\x00' <= char <= '\t': |
| 710 |
state = 4 |
| 711 |
continue |
| 712 |
elif '\x0b' <= char <= '\xff': |
| 713 |
state = 4 |
| 714 |
continue |
| 715 |
else: |
| 716 |
break |
| 717 |
if state == 5: |
| 718 |
try: |
| 719 |
char = input[i] |
| 720 |
i += 1 |
| 721 |
except IndexError: |
| 722 |
runner.state = 5 |
| 723 |
return ~i |
| 724 |
if char == '\\': |
| 725 |
state = 24 |
| 726 |
elif char == '"': |
| 727 |
state = 25 |
| 728 |
elif '\x00' <= char <= '!': |
| 729 |
state = 5 |
| 730 |
continue |
| 731 |
elif '#' <= char <= '[': |
| 732 |
state = 5 |
| 733 |
continue |
| 734 |
elif ']' <= char <= '\xff': |
| 735 |
state = 5 |
| 736 |
continue |
| 737 |
else: |
| 738 |
break |
| 739 |
if state == 6: |
| 740 |
try: |
| 741 |
char = input[i] |
| 742 |
i += 1 |
| 743 |
except IndexError: |
| 744 |
runner.state = 6 |
| 745 |
return ~i |
| 746 |
if char == '"': |
| 747 |
state = 22 |
| 748 |
else: |
| 749 |
break |
| 750 |
if state == 16: |
| 751 |
runner.last_matched_index = i - 1 |
| 752 |
runner.last_matched_state = state |
| 753 |
try: |
| 754 |
char = input[i] |
| 755 |
i += 1 |
| 756 |
except IndexError: |
| 757 |
runner.state = 16 |
| 758 |
return i |
| 759 |
if char == '_': |
| 760 |
state = 16 |
| 761 |
continue |
| 762 |
elif 'A' <= char <= 'Z': |
| 763 |
state = 16 |
| 764 |
continue |
| 765 |
else: |
| 766 |
break |
| 767 |
if state == 19: |
| 768 |
runner.last_matched_index = i - 1 |
| 769 |
runner.last_matched_state = state |
| 770 |
try: |
| 771 |
char = input[i] |
| 772 |
i += 1 |
| 773 |
except IndexError: |
| 774 |
runner.state = 19 |
| 775 |
return i |
| 776 |
if 'A' <= char <= 'Z': |
| 777 |
state = 16 |
| 778 |
continue |
| 779 |
elif char == '_': |
| 780 |
state = 19 |
| 781 |
continue |
| 782 |
elif '0' <= char <= '9': |
| 783 |
state = 20 |
| 784 |
elif 'a' <= char <= 'z': |
| 785 |
state = 20 |
| 786 |
else: |
| 787 |
break |
| 788 |
if state == 20: |
| 789 |
runner.last_matched_index = i - 1 |
| 790 |
runner.last_matched_state = state |
| 791 |
try: |
| 792 |
char = input[i] |
| 793 |
i += 1 |
| 794 |
except IndexError: |
| 795 |
runner.state = 20 |
| 796 |
return i |
| 797 |
if char == '_': |
| 798 |
state = 20 |
| 799 |
continue |
| 800 |
elif '0' <= char <= '9': |
| 801 |
state = 20 |
| 802 |
continue |
| 803 |
elif 'a' <= char <= 'z': |
| 804 |
state = 20 |
| 805 |
continue |
| 806 |
else: |
| 807 |
break |
| 808 |
if state == 22: |
| 809 |
try: |
| 810 |
char = input[i] |
| 811 |
i += 1 |
| 812 |
except IndexError: |
| 813 |
runner.state = 22 |
| 814 |
return ~i |
| 815 |
if char == "'": |
| 816 |
state = 23 |
| 817 |
else: |
| 818 |
break |
| 819 |
if state == 24: |
| 820 |
try: |
| 821 |
char = input[i] |
| 822 |
i += 1 |
| 823 |
except IndexError: |
| 824 |
runner.state = 24 |
| 825 |
return ~i |
| 826 |
if char == '\\': |
| 827 |
state = 24 |
| 828 |
continue |
| 829 |
elif char == '"': |
| 830 |
state = 26 |
| 831 |
elif '\x00' <= char <= '!': |
| 832 |
state = 5 |
| 833 |
continue |
| 834 |
elif '#' <= char <= '[': |
| 835 |
state = 5 |
| 836 |
continue |
| 837 |
elif ']' <= char <= '\xff': |
| 838 |
state = 5 |
| 839 |
continue |
| 840 |
else: |
| 841 |
break |
| 842 |
if state == 26: |
| 843 |
runner.last_matched_index = i - 1 |
| 844 |
runner.last_matched_state = state |
| 845 |
try: |
| 846 |
char = input[i] |
| 847 |
i += 1 |
| 848 |
except IndexError: |
| 849 |
runner.state = 26 |
| 850 |
return i |
| 851 |
if char == '"': |
| 852 |
state = 25 |
| 853 |
elif '\x00' <= char <= '!': |
| 854 |
state = 5 |
| 855 |
continue |
| 856 |
elif '#' <= char <= '\xff': |
| 857 |
state = 5 |
| 858 |
continue |
| 859 |
else: |
| 860 |
break |
| 861 |
runner.last_matched_state = state |
| 862 |
runner.last_matched_index = i - 1 |
| 863 |
runner.state = state |
| 864 |
if i == len(input): |
| 865 |
return i |
| 866 |
else: |
| 867 |
return ~i |
| 868 |
break |
| 869 |
runner.state = state |
| 870 |
return ~i |
| 871 |
lexer = DummyLexer(recognize, DFA(28, |
| 872 |
{(0, '\t'): 1, |
| 873 |
(0, '\n'): 2, |
| 874 |
(0, ' '): 3, |
| 875 |
(0, '"'): 5, |
| 876 |
(0, '#'): 4, |
| 877 |
(0, "'"): 6, |
| 878 |
(0, '('): 8, |
| 879 |
(0, ')'): 7, |
| 880 |
(0, '*'): 10, |
| 881 |
(0, '+'): 9, |
| 882 |
(0, ':'): 12, |
| 883 |
(0, ';'): 11, |
| 884 |
(0, '<'): 13, |
| 885 |
(0, '>'): 15, |
| 886 |
(0, '?'): 14, |
| 887 |
(0, 'A'): 16, |
| 888 |
(0, 'B'): 16, |
| 889 |
(0, 'C'): 16, |
| 890 |
(0, 'D'): 16, |
| 891 |
(0, 'E'): 16, |
| 892 |
(0, 'F'): 16, |
| 893 |
(0, 'G'): 16, |
| 894 |
(0, 'H'): 16, |
| 895 |
(0, 'I'): 16, |
| 896 |
(0, 'J'): 16, |
| 897 |
(0, 'K'): 16, |
| 898 |
(0, 'L'): 16, |
| 899 |
(0, 'M'): 16, |
| 900 |
(0, 'N'): 16, |
| 901 |
(0, 'O'): 16, |
| 902 |
(0, 'P'): 16, |
| 903 |
(0, 'Q'): 16, |
| 904 |
(0, 'R'): 16, |
| 905 |
(0, 'S'): 16, |
| 906 |
(0, 'T'): 16, |
| 907 |
(0, 'U'): 16, |
| 908 |
(0, 'V'): 16, |
| 909 |
(0, 'W'): 16, |
| 910 |
(0, 'X'): 16, |
| 911 |
(0, 'Y'): 16, |
| 912 |
(0, 'Z'): 16, |
| 913 |
(0, '['): 17, |
| 914 |
(0, ']'): 18, |
| 915 |
(0, '_'): 19, |
| 916 |
(0, 'a'): 20, |
| 917 |
(0, 'b'): 20, |
| 918 |
(0, 'c'): 20, |
| 919 |
(0, 'd'): 20, |
| 920 |
(0, 'e'): 20, |
| 921 |
(0, 'f'): 20, |
| 922 |
(0, 'g'): 20, |
| 923 |
(0, 'h'): 20, |
| 924 |
(0, 'i'): 20, |
| 925 |
(0, 'j'): 20, |
| 926 |
(0, 'k'): 20, |
| 927 |
(0, 'l'): 20, |
| 928 |
(0, 'm'): 20, |
| 929 |
(0, 'n'): 20, |
| 930 |
(0, 'o'): 20, |
| 931 |
(0, 'p'): 20, |
| 932 |
(0, 'q'): 20, |
| 933 |
(0, 'r'): 20, |
| 934 |
(0, 's'): 20, |
| 935 |
(0, 't'): 20, |
| 936 |
(0, 'u'): 20, |
| 937 |
(0, 'v'): 20, |
| 938 |
(0, 'w'): 20, |
| 939 |
(0, 'x'): 20, |
| 940 |
(0, 'y'): 20, |
| 941 |
(0, 'z'): 20, |
| 942 |
(0, '|'): 21, |
| 943 |
(4, '\x00'): 4, |
| 944 |
(4, '\x01'): 4, |
| 945 |
(4, '\x02'): 4, |
| 946 |
(4, '\x03'): 4, |
| 947 |
(4, '\x04'): 4, |
| 948 |
(4, '\x05'): 4, |
| 949 |
(4, '\x06'): 4, |
| 950 |
(4, '\x07'): 4, |
| 951 |
(4, '\x08'): 4, |
| 952 |
(4, '\t'): 4, |
| 953 |
(4, '\n'): 27, |
| 954 |
(4, '\x0b'): 4, |
| 955 |
(4, '\x0c'): 4, |
| 956 |
(4, '\r'): 4, |
| 957 |
(4, '\x0e'): 4, |
| 958 |
(4, '\x0f'): 4, |
| 959 |
(4, '\x10'): 4, |
| 960 |
(4, '\x11'): 4, |
| 961 |
(4, '\x12'): 4, |
| 962 |
(4, '\x13'): 4, |
| 963 |
(4, '\x14'): 4, |
| 964 |
(4, '\x15'): 4, |
| 965 |
(4, '\x16'): 4, |
| 966 |
(4, '\x17'): 4, |
| 967 |
(4, '\x18'): 4, |
| 968 |
(4, '\x19'): 4, |
| 969 |
(4, '\x1a'): 4, |
| 970 |
(4, '\x1b'): 4, |
| 971 |
(4, '\x1c'): 4, |
| 972 |
(4, '\x1d'): 4, |
| 973 |
(4, '\x1e'): 4, |
| 974 |
(4, '\x1f'): 4, |
| 975 |
(4, ' '): 4, |
| 976 |
(4, '!'): 4, |
| 977 |
(4, '"'): 4, |
| 978 |
(4, '#'): 4, |
| 979 |
(4, '$'): 4, |
| 980 |
(4, '%'): 4, |
| 981 |
(4, '&'): 4, |
| 982 |
(4, "'"): 4, |
| 983 |
(4, '('): 4, |
| 984 |
(4, ')'): 4, |
| 985 |
(4, '*'): 4, |
| 986 |
(4, '+'): 4, |
| 987 |
(4, ','): 4, |
| 988 |
(4, '-'): 4, |
| 989 |
(4, '.'): 4, |
| 990 |
(4, '/'): 4, |
| 991 |
(4, '0'): 4, |
| 992 |
(4, '1'): 4, |
| 993 |
(4, '2'): 4, |
| 994 |
(4, '3'): 4, |
| 995 |
(4, '4'): 4, |
| 996 |
(4, '5'): 4, |
| 997 |
(4, '6'): 4, |
| 998 |
(4, '7'): 4, |
| 999 |
(4, '8'): 4, |
| 1000 |
(4, '9'): 4, |
| 1001 |
(4, ':'): 4, |
| 1002 |
(4, ';'): 4, |
| 1003 |
(4, '<'): 4, |
| 1004 |
(4, '='): 4, |
| 1005 |
(4, '>'): 4, |
| 1006 |
(4, '?'): 4, |
| 1007 |
(4, '@'): 4, |
| 1008 |
(4, 'A'): 4, |
| 1009 |
(4, 'B'): 4, |
| 1010 |
(4, 'C'): 4, |
| 1011 |
(4, 'D'): 4, |
| 1012 |
(4, 'E'): 4, |
| 1013 |
(4, 'F'): 4, |
| 1014 |
(4, 'G'): 4, |
| 1015 |
(4, 'H'): 4, |
| 1016 |
(4, 'I'): 4, |
| 1017 |
(4, 'J'): 4, |
| 1018 |
(4, 'K'): 4, |
| 1019 |
(4, 'L'): 4, |
| 1020 |
(4, 'M'): 4, |
| 1021 |
(4, 'N'): 4, |
| 1022 |
(4, 'O'): 4, |
| 1023 |
(4, 'P'): 4, |
| 1024 |
(4, 'Q'): 4, |
| 1025 |
(4, 'R'): 4, |
| 1026 |
(4, 'S'): 4, |
| 1027 |
(4, 'T'): 4, |
| 1028 |
(4, 'U'): 4, |
| 1029 |
(4, 'V'): 4, |
| 1030 |
(4, 'W'): 4, |
| 1031 |
(4, 'X'): 4, |
| 1032 |
(4, 'Y'): 4, |
| 1033 |
(4, 'Z'): 4, |
| 1034 |
(4, '['): 4, |
| 1035 |
(4, '\\'): 4, |
| 1036 |
(4, ']'): 4, |
| 1037 |
(4, '^'): 4, |
| 1038 |
(4, '_'): 4, |
| 1039 |
(4, '`'): 4, |
| 1040 |
(4, 'a'): 4, |
| 1041 |
(4, 'b'): 4, |
| 1042 |
(4, 'c'): 4, |
| 1043 |
(4, 'd'): 4, |
| 1044 |
(4, 'e'): 4, |
| 1045 |
(4, 'f'): 4, |
| 1046 |
(4, 'g'): 4, |
| 1047 |
(4, 'h'): 4, |
| 1048 |
(4, 'i'): 4, |
| 1049 |
(4, 'j'): 4, |
| 1050 |
(4, 'k'): 4, |
| 1051 |
(4, 'l'): 4, |
| 1052 |
(4, 'm'): 4, |
| 1053 |
(4, 'n'): 4, |
| 1054 |
(4, 'o'): 4, |
| 1055 |
(4, 'p'): 4, |
| 1056 |
(4, 'q'): 4, |
| 1057 |
(4, 'r'): 4, |
| 1058 |
(4, 's'): 4, |
| 1059 |
(4, 't'): 4, |
| 1060 |
(4, 'u'): 4, |
| 1061 |
(4, 'v'): 4, |
| 1062 |
(4, 'w'): 4, |
| 1063 |
(4, 'x'): 4, |
| 1064 |
(4, 'y'): 4, |
| 1065 |
(4, 'z'): 4, |
| 1066 |
(4, '{'): 4, |
| 1067 |
(4, '|'): 4, |
| 1068 |
(4, '}'): 4, |
| 1069 |
(4, '~'): 4, |
| 1070 |
(4, '\x7f'): 4, |
| 1071 |
(4, '\x80'): 4, |
| 1072 |
(4, '\x81'): 4, |
| 1073 |
(4, '\x82'): 4, |
| 1074 |
(4, '\x83'): 4, |
| 1075 |
(4, '\x84'): 4, |
| 1076 |
(4, '\x85'): 4, |
| 1077 |
(4, '\x86'): 4, |
| 1078 |
(4, '\x87'): 4, |
| 1079 |
(4, '\x88'): 4, |
| 1080 |
(4, '\x89'): 4, |
| 1081 |
(4, '\x8a'): 4, |
| 1082 |
(4, '\x8b'): 4, |
| 1083 |
(4, '\x8c'): 4, |
| 1084 |
(4, '\x8d'): 4, |
| 1085 |
(4, '\x8e'): 4, |
| 1086 |
(4, '\x8f'): 4, |
| 1087 |
(4, '\x90'): 4, |
| 1088 |
(4, '\x91'): 4, |
| 1089 |
(4, '\x92'): 4, |
| 1090 |
(4, '\x93'): 4, |
| 1091 |
(4, '\x94'): 4, |
| 1092 |
(4, '\x95'): 4, |
| 1093 |
(4, '\x96'): 4, |
| 1094 |
(4, '\x97'): 4, |
| 1095 |
(4, '\x98'): 4, |
| 1096 |
(4, '\x99'): 4, |
| 1097 |
(4, '\x9a'): 4, |
| 1098 |
(4, '\x9b'): 4, |
| 1099 |
(4, '\x9c'): 4, |
| 1100 |
(4, '\x9d'): 4, |
| 1101 |
(4, '\x9e'): 4, |
| 1102 |
(4, '\x9f'): 4, |
| 1103 |
(4, '\xa0'): 4, |
| 1104 |
(4, '\xa1'): 4, |
| 1105 |
(4, '\xa2'): 4, |
| 1106 |
(4, '\xa3'): 4, |
| 1107 |
(4, '\xa4'): 4, |
| 1108 |
(4, '\xa5'): 4, |
| 1109 |
(4, '\xa6'): 4, |
| 1110 |
(4, '\xa7'): 4, |
| 1111 |
(4, '\xa8'): 4, |
| 1112 |
(4, '\xa9'): 4, |
| 1113 |
(4, '\xaa'): 4, |
| 1114 |
(4, '\xab'): 4, |
| 1115 |
(4, '\xac'): 4, |
| 1116 |
(4, '\xad'): 4, |
| 1117 |
(4, '\xae'): 4, |
| 1118 |
(4, '\xaf'): 4, |
| 1119 |
(4, '\xb0'): 4, |
| 1120 |
(4, '\xb1'): 4, |
| 1121 |
(4, '\xb2'): 4, |
| 1122 |
(4, '\xb3'): 4, |
| 1123 |
(4, '\xb4'): 4, |
| 1124 |
(4, '\xb5'): 4, |
| 1125 |
(4, '\xb6'): 4, |
| 1126 |
(4, '\xb7'): 4, |
| 1127 |
(4, '\xb8'): 4, |
| 1128 |
(4, '\xb9'): 4, |
| 1129 |
(4, '\xba'): 4, |
| 1130 |
(4, '\xbb'): 4, |
| 1131 |
(4, '\xbc'): 4, |
| 1132 |
(4, '\xbd'): 4, |
| 1133 |
(4, '\xbe'): 4, |
| 1134 |
(4, '\xbf'): 4, |
| 1135 |
(4, '\xc0'): 4, |
| 1136 |
(4, '\xc1'): 4, |
| 1137 |
(4, '\xc2'): 4, |
| 1138 |
(4, '\xc3'): 4, |
| 1139 |
(4, '\xc4'): 4, |
| 1140 |
(4, '\xc5'): 4, |
| 1141 |
(4, '\xc6'): 4, |
| 1142 |
(4, '\xc7'): 4, |
| 1143 |
(4, '\xc8'): 4, |
| 1144 |
(4, '\xc9'): 4, |
| 1145 |
(4, '\xca'): 4, |
| 1146 |
(4, '\xcb'): 4, |
| 1147 |
(4, '\xcc'): 4, |
| 1148 |
(4, '\xcd'): 4, |
| 1149 |
(4, '\xce'): 4, |
| 1150 |
(4, '\xcf'): 4, |
| 1151 |
(4, '\xd0'): 4, |
| 1152 |
(4, '\xd1'): 4, |
| 1153 |
(4, '\xd2'): 4, |
| 1154 |
(4, '\xd3'): 4, |
| 1155 |
(4, '\xd4'): 4, |
| 1156 |
(4, '\xd5'): 4, |
| 1157 |
(4, '\xd6'): 4, |
| 1158 |
(4, '\xd7'): 4, |
| 1159 |
(4, '\xd8'): 4, |
| 1160 |
(4, '\xd9'): 4, |
| 1161 |
(4, '\xda'): 4, |
| 1162 |
(4, '\xdb'): 4, |
| 1163 |
(4, '\xdc'): 4, |
| 1164 |
(4, '\xdd'): 4, |
| 1165 |
(4, '\xde'): 4, |
| 1166 |
(4, '\xdf'): 4, |
| 1167 |
(4, '\xe0'): 4, |
| 1168 |
(4, '\xe1'): 4, |
| 1169 |
(4, '\xe2'): 4, |
| 1170 |
(4, '\xe3'): 4, |
| 1171 |
(4, '\xe4'): 4, |
| 1172 |
(4, '\xe5'): 4, |
| 1173 |
(4, '\xe6'): 4, |
| 1174 |
(4, '\xe7'): 4, |
| 1175 |
(4, '\xe8'): 4, |
| 1176 |
(4, '\xe9'): 4, |
| 1177 |
(4, '\xea'): 4, |
| 1178 |
(4, '\xeb'): 4, |
| 1179 |
(4, '\xec'): 4, |
| 1180 |
(4, '\xed'): 4, |
| 1181 |
(4, '\xee'): 4, |
| 1182 |
(4, '\xef'): 4, |
| 1183 |
(4, '\xf0'): 4, |
| 1184 |
(4, '\xf1'): 4, |
| 1185 |
(4, '\xf2'): 4, |
| 1186 |
(4, '\xf3'): 4, |
| 1187 |
(4, '\xf4'): 4, |
| 1188 |
(4, '\xf5'): 4, |
| 1189 |
(4, '\xf6'): 4, |
| 1190 |
(4, '\xf7'): 4, |
| 1191 |
(4, '\xf8'): 4, |
| 1192 |
(4, '\xf9'): 4, |
| 1193 |
(4, '\xfa'): 4, |
| 1194 |
(4, '\xfb'): 4, |
| 1195 |
(4, '\xfc'): 4, |
| 1196 |
(4, '\xfd'): 4, |
| 1197 |
(4, '\xfe'): 4, |
| 1198 |
(4, '\xff'): 4, |
| 1199 |
(5, '\x00'): 5, |
| 1200 |
(5, '\x01'): 5, |
| 1201 |
(5, '\x02'): 5, |
| 1202 |
(5, '\x03'): 5, |
| 1203 |
(5, '\x04'): 5, |
| 1204 |
(5, '\x05'): 5, |
| 1205 |
(5, '\x06'): 5, |
| 1206 |
(5, '\x07'): 5, |
| 1207 |
(5, '\x08'): 5, |
| 1208 |
(5, '\t'): 5, |
| 1209 |
(5, '\n'): 5, |
| 1210 |
(5, '\x0b'): 5, |
| 1211 |
(5, '\x0c'): 5, |
| 1212 |
(5, '\r'): 5, |
| 1213 |
(5, '\x0e'): 5, |
| 1214 |
(5, '\x0f'): 5, |
| 1215 |
(5, '\x10'): 5, |
| 1216 |
(5, '\x11'): 5, |
| 1217 |
(5, '\x12'): 5, |
| 1218 |
(5, '\x13'): 5, |
| 1219 |
(5, '\x14'): 5, |
| 1220 |
(5, '\x15'): 5, |
| 1221 |
(5, '\x16'): 5, |
| 1222 |
(5, '\x17'): 5, |
| 1223 |
(5, '\x18'): 5, |
| 1224 |
(5, '\x19'): 5, |
| 1225 |
(5, '\x1a'): 5, |
| 1226 |
(5, '\x1b'): 5, |
| 1227 |
(5, '\x1c'): 5, |
| 1228 |
(5, '\x1d'): 5, |
| 1229 |
(5, '\x1e'): 5, |
| 1230 |
(5, '\x1f'): 5, |
| 1231 |
(5, ' '): 5, |
| 1232 |
(5, '!'): 5, |
| 1233 |
(5, '"'): 25, |
| 1234 |
(5, '#'): 5, |
| 1235 |
(5, '$'): 5, |
| 1236 |
(5, '%'): 5, |
| 1237 |
(5, '&'): 5, |
| 1238 |
(5, "'"): 5, |
| 1239 |
(5, '('): 5, |
| 1240 |
(5, ')'): 5, |
| 1241 |
(5, '*'): 5, |
| 1242 |
(5, '+'): 5, |
| 1243 |
(5, ','): 5, |
| 1244 |
(5, '-'): 5, |
| 1245 |
(5, '.'): 5, |
| 1246 |
(5, '/'): 5, |
| 1247 |
(5, '0'): 5, |
| 1248 |
(5, '1'): 5, |
| 1249 |
(5, '2'): 5, |
| 1250 |
(5, '3'): 5, |
| 1251 |
(5, '4'): 5, |
| 1252 |
(5, '5'): 5, |
| 1253 |
(5, '6'): 5, |
| 1254 |
(5, '7'): 5, |
| 1255 |
(5, '8'): 5, |
| 1256 |
(5, '9'): 5, |
| 1257 |
(5, ':'): 5, |
| 1258 |
(5, ';'): 5, |
| 1259 |
(5, '<'): 5, |
| 1260 |
(5, '='): 5, |
| 1261 |
(5, '>'): 5, |
| 1262 |
(5, '?'): 5, |
| 1263 |
(5, '@'): 5, |
| 1264 |
(5, 'A'): 5, |
| 1265 |
(5, 'B'): 5, |
| 1266 |
(5, 'C'): 5, |
| 1267 |
(5, 'D'): 5, |
| 1268 |
(5, 'E'): 5, |
| 1269 |
(5, 'F'): 5, |
| 1270 |
(5, 'G'): 5, |
| 1271 |
(5, 'H'): 5, |
| 1272 |
(5, 'I'): 5, |
| 1273 |
(5, 'J'): 5, |
| 1274 |
(5, 'K'): 5, |
| 1275 |
(5, 'L'): 5, |
| 1276 |
(5, 'M'): 5, |
| 1277 |
(5, 'N'): 5, |
| 1278 |
(5, 'O'): 5, |
| 1279 |
(5, 'P'): 5, |
| 1280 |
(5, 'Q'): 5, |
| 1281 |
(5, 'R'): 5, |
| 1282 |
(5, 'S'): 5, |
| 1283 |
(5, 'T'): 5, |
| 1284 |
(5, 'U'): 5, |
| 1285 |
(5, 'V'): 5, |
| 1286 |
(5, 'W'): 5, |
| 1287 |
(5, 'X'): 5, |
| 1288 |
(5, 'Y'): 5, |
| 1289 |
(5, 'Z'): 5, |
| 1290 |
(5, '['): 5, |
| 1291 |
(5, '\\'): 24, |
| 1292 |
(5, ']'): 5, |
| 1293 |
(5, '^'): 5, |
| 1294 |
(5, '_'): 5, |
| 1295 |
(5, '`'): 5, |
| 1296 |
(5, 'a'): 5, |
| 1297 |
(5, 'b'): 5, |
| 1298 |
(5, 'c'): 5, |
| 1299 |
(5, 'd'): 5, |
| 1300 |
(5, 'e'): 5, |
| 1301 |
(5, 'f'): 5, |
| 1302 |
(5, 'g'): 5, |
| 1303 |
(5, 'h'): 5, |
| 1304 |
(5, 'i'): 5, |
| 1305 |
(5, 'j'): 5, |
| 1306 |
(5, 'k'): 5, |
| 1307 |
(5, 'l'): 5, |
| 1308 |
(5, 'm'): 5, |
| 1309 |
(5, 'n'): 5, |
| 1310 |
(5, 'o'): 5, |
| 1311 |
(5, 'p'): 5, |
| 1312 |
(5, 'q'): 5, |
| 1313 |
(5, 'r'): 5, |
| 1314 |
(5, 's'): 5, |
| 1315 |
(5, 't'): 5, |
| 1316 |
(5, 'u'): 5, |
| 1317 |
(5, 'v'): 5, |
| 1318 |
(5, 'w'): 5, |
| 1319 |
(5, 'x'): 5, |
| 1320 |
(5, 'y'): 5, |
| 1321 |
(5, 'z'): 5, |
| 1322 |
(5, '{'): 5, |
| 1323 |
(5, '|'): 5, |
| 1324 |
(5, '}'): 5, |
| 1325 |
(5, '~'): 5, |
| 1326 |
(5, '\x7f'): 5, |
| 1327 |
(5, '\x80'): 5, |
| 1328 |
(5, '\x81'): 5, |
| 1329 |
(5, '\x82'): 5, |
| 1330 |
(5, '\x83'): 5, |
| 1331 |
(5, '\x84'): 5, |
| 1332 |
(5, '\x85'): 5, |
| 1333 |
(5, '\x86'): 5, |
| 1334 |
(5, '\x87'): 5, |
| 1335 |
(5, '\x88'): 5, |
| 1336 |
(5, '\x89'): 5, |
| 1337 |
(5, '\x8a'): 5, |
| 1338 |
(5, '\x8b'): 5, |
| 1339 |
(5, '\x8c'): 5, |
| 1340 |
(5, '\x8d'): 5, |
| 1341 |
(5, '\x8e'): 5, |
| 1342 |
(5, '\x8f'): 5, |
| 1343 |
(5, '\x90'): 5, |
| 1344 |
(5, '\x91'): 5, |
| 1345 |
(5, '\x92'): 5, |
| 1346 |
(5, '\x93'): 5, |
| 1347 |
(5, '\x94'): 5, |
| 1348 |
(5, '\x95'): 5, |
| 1349 |
(5, '\x96'): 5, |
| 1350 |
(5, '\x97'): 5, |
| 1351 |
(5, '\x98'): 5, |
| 1352 |
(5, '\x99'): 5, |
| 1353 |
(5, '\x9a'): 5, |
| 1354 |
(5, '\x9b'): 5, |
| 1355 |
(5, '\x9c'): 5, |
| 1356 |
(5, '\x9d'): 5, |
| 1357 |
(5, '\x9e'): 5, |
| 1358 |
(5, '\x9f'): 5, |
| 1359 |
(5, '\xa0'): 5, |
| 1360 |
(5, '\xa1'): 5, |
| 1361 |
(5, '\xa2'): 5, |
| 1362 |
(5, '\xa3'): 5, |
| 1363 |
(5, '\xa4'): 5, |
| 1364 |
(5, '\xa5'): 5, |
| 1365 |
(5, '\xa6'): 5, |
| 1366 |
(5, '\xa7'): 5, |
| 1367 |
(5, '\xa8'): 5, |
| 1368 |
(5, '\xa9'): 5, |
| 1369 |
(5, '\xaa'): 5, |
| 1370 |
(5, '\xab'): 5, |
| 1371 |
(5, '\xac'): 5, |
| 1372 |
(5, '\xad'): 5, |
| 1373 |
(5, '\xae'): 5, |
| 1374 |
(5, '\xaf'): 5, |
| 1375 |
(5, '\xb0'): 5, |
| 1376 |
(5, '\xb1'): 5, |
| 1377 |
(5, '\xb2'): 5, |
| 1378 |
(5, '\xb3'): 5, |
| 1379 |
(5, '\xb4'): 5, |
| 1380 |
(5, '\xb5'): 5, |
| 1381 |
(5, '\xb6'): 5, |
| 1382 |
(5, '\xb7'): 5, |
| 1383 |
(5, '\xb8'): 5, |
| 1384 |
(5, '\xb9'): 5, |
| 1385 |
(5, '\xba'): 5, |
| 1386 |
(5, '\xbb'): 5, |
| 1387 |
(5, '\xbc'): 5, |
| 1388 |
(5, '\xbd'): 5, |
| 1389 |
(5, '\xbe'): 5, |
| 1390 |
(5, '\xbf'): 5, |
| 1391 |
(5, '\xc0'): 5, |
| 1392 |
(5, '\xc1'): 5, |
| 1393 |
(5, '\xc2'): 5, |
| 1394 |
(5, '\xc3'): 5, |
| 1395 |
(5, '\xc4'): 5, |
| 1396 |
(5, '\xc5'): 5, |
| 1397 |
(5, '\xc6'): 5, |
| 1398 |
(5, '\xc7'): 5, |
| 1399 |
(5, '\xc8'): 5, |
| 1400 |
(5, '\xc9'): 5, |
| 1401 |
(5, '\xca'): 5, |
| 1402 |
(5, '\xcb'): 5, |
| 1403 |
(5, '\xcc'): 5, |
| 1404 |
(5, '\xcd'): 5, |
| 1405 |
(5, '\xce'): 5, |
| 1406 |
(5, '\xcf'): 5, |
| 1407 |
(5, '\xd0'): 5, |
| 1408 |
(5, '\xd1'): 5, |
| 1409 |
(5, '\xd2'): 5, |
| 1410 |
(5, '\xd3'): 5, |
| 1411 |
(5, '\xd4'): 5, |
| 1412 |
(5, '\xd5'): 5, |
| 1413 |
(5, '\xd6'): 5, |
| 1414 |
(5, '\xd7'): 5, |
| 1415 |
(5, '\xd8'): 5, |
| 1416 |
(5, '\xd9'): 5, |
| 1417 |
(5, '\xda'): 5, |
| 1418 |
(5, '\xdb'): 5, |
| 1419 |
(5, '\xdc'): 5, |
| 1420 |
(5, '\xdd'): 5, |
| 1421 |
(5, '\xde'): 5, |
| 1422 |
(5, '\xdf'): 5, |
| 1423 |
(5, '\xe0'): 5, |
| 1424 |
(5, '\xe1'): 5, |
| 1425 |
(5, '\xe2'): 5, |
| 1426 |
(5, '\xe3'): 5, |
| 1427 |
(5, '\xe4'): 5, |
| 1428 |
(5, '\xe5'): 5, |
| 1429 |
(5, '\xe6'): 5, |
| 1430 |
(5, '\xe7'): 5, |
| 1431 |
(5, '\xe8'): 5, |
| 1432 |
(5, '\xe9'): 5, |
| 1433 |
(5, '\xea'): 5, |
| 1434 |
(5, '\xeb'): 5, |
| 1435 |
(5, '\xec'): 5, |
| 1436 |
(5, '\xed'): 5, |
| 1437 |
(5, '\xee'): 5, |
| 1438 |
(5, '\xef'): 5, |
| 1439 |
(5, '\xf0'): 5, |
| 1440 |
(5, '\xf1'): 5, |
| 1441 |
(5, '\xf2'): 5, |
| 1442 |
(5, '\xf3'): 5, |
| 1443 |
(5, '\xf4'): 5, |
| 1444 |
(5, '\xf5'): 5, |
| 1445 |
(5, '\xf6'): 5, |
| 1446 |
(5, '\xf7'): 5, |
| 1447 |
(5, '\xf8'): 5, |
| 1448 |
(5, '\xf9'): 5, |
| 1449 |
(5, '\xfa'): 5, |
| 1450 |
(5, '\xfb'): 5, |
| 1451 |
(5, '\xfc'): 5, |
| 1452 |
(5, '\xfd'): 5, |
| 1453 |
(5, '\xfe'): 5, |
| 1454 |
(5, '\xff'): 5, |
| 1455 |
(6, '"'): 22, |
| 1456 |
(16, 'A'): 16, |
| 1457 |
(16, 'B'): 16, |
| 1458 |
(16, 'C'): 16, |
| 1459 |
(16, 'D'): 16, |
| 1460 |
(16, 'E'): 16, |
| 1461 |
(16, 'F'): 16, |
| 1462 |
(16, 'G'): 16, |
| 1463 |
(16, 'H'): 16, |
| 1464 |
(16, 'I'): 16, |
| 1465 |
(16, 'J'): 16, |
| 1466 |
(16, 'K'): 16, |
| 1467 |
(16, 'L'): 16, |
| 1468 |
(16, 'M'): 16, |
| 1469 |
(16, 'N'): 16, |
| 1470 |
(16, 'O'): 16, |
| 1471 |
(16, 'P'): 16, |
| 1472 |
(16, 'Q'): 16, |
| 1473 |
(16, 'R'): 16, |
| 1474 |
(16, 'S'): 16, |
| 1475 |
(16, 'T'): 16, |
| 1476 |
(16, 'U'): 16, |
| 1477 |
(16, 'V'): 16, |
| 1478 |
(16, 'W'): 16, |
| 1479 |
(16, 'X'): 16, |
| 1480 |
(16, 'Y'): 16, |
| 1481 |
(16, 'Z'): 16, |
| 1482 |
(16, '_'): 16, |
| 1483 |
(19, '0'): 20, |
| 1484 |
(19, '1'): 20, |
| 1485 |
(19, '2'): 20, |
| 1486 |
(19, '3'): 20, |
| 1487 |
(19, '4'): 20, |
| 1488 |
(19, '5'): 20, |
| 1489 |
(19, '6'): 20, |
| 1490 |
(19, '7'): 20, |
| 1491 |
(19, '8'): 20, |
| 1492 |
(19, '9'): 20, |
| 1493 |
(19, 'A'): 16, |
| 1494 |
(19, 'B'): 16, |
| 1495 |
(19, 'C'): 16, |
| 1496 |
(19, 'D'): 16, |
| 1497 |
(19, 'E'): 16, |
| 1498 |
(19, 'F'): 16, |
| 1499 |
(19, 'G'): 16, |
| 1500 |
(19, 'H'): 16, |
| 1501 |
(19, 'I'): 16, |
| 1502 |
(19, 'J'): 16, |
| 1503 |
(19, 'K'): 16, |
| 1504 |
(19, 'L'): 16, |
| 1505 |
(19, 'M'): 16, |
| 1506 |
(19, 'N'): 16, |
| 1507 |
(19, 'O'): 16, |
| 1508 |
(19, 'P'): 16, |
| 1509 |
(19, 'Q'): 16, |
| 1510 |
(19, 'R'): 16, |
| 1511 |
(19, 'S'): 16, |
| 1512 |
(19, 'T'): 16, |
| 1513 |
(19, 'U'): 16, |
| 1514 |
(19, 'V'): 16, |
| 1515 |
(19, 'W'): 16, |
| 1516 |
(19, 'X'): 16, |
| 1517 |
(19, 'Y'): 16, |
| 1518 |
(19, 'Z'): 16, |
| 1519 |
(19, '_'): 19, |
| 1520 |
(19, 'a'): 20, |
| 1521 |
(19, 'b'): 20, |
| 1522 |
(19, 'c'): 20, |
| 1523 |
(19, 'd'): 20, |
| 1524 |
(19, 'e'): 20, |
| 1525 |
(19, 'f'): 20, |
| 1526 |
(19, 'g'): 20, |
| 1527 |
(19, 'h'): 20, |
| 1528 |
(19, 'i'): 20, |
| 1529 |
(19, 'j'): 20, |
| 1530 |
(19, 'k'): 20, |
| 1531 |
(19, 'l'): 20, |
| 1532 |
(19, 'm'): 20, |
| 1533 |
(19, 'n'): 20, |
| 1534 |
(19, 'o'): 20, |
| 1535 |
(19, 'p'): 20, |
| 1536 |
(19, 'q'): 20, |
| 1537 |
(19, 'r'): 20, |
| 1538 |
(19, 's'): 20, |
| 1539 |
(19, 't'): 20, |
| 1540 |
(19, 'u'): 20, |
| 1541 |
(19, 'v'): 20, |
| 1542 |
(19, 'w'): 20, |
| 1543 |
(19, 'x'): 20, |
| 1544 |
(19, 'y'): 20, |
| 1545 |
(19, 'z'): 20, |
| 1546 |
(20, '0'): 20, |
| 1547 |
(20, '1'): 20, |
| 1548 |
(20, '2'): 20, |
| 1549 |
(20, '3'): 20, |
| 1550 |
(20, '4'): 20, |
| 1551 |
(20, '5'): 20, |
| 1552 |
(20, '6'): 20, |
| 1553 |
(20, '7'): 20, |
| 1554 |
(20, '8'): 20, |
| 1555 |
(20, '9'): 20, |
| 1556 |
(20, '_'): 20, |
| 1557 |
(20, 'a'): 20, |
| 1558 |
(20, 'b'): 20, |
| 1559 |
(20, 'c'): 20, |
| 1560 |
(20, 'd'): 20, |
| 1561 |
(20, 'e'): 20, |
| 1562 |
(20, 'f'): 20, |
| 1563 |
(20, 'g'): 20, |
| 1564 |
(20, 'h'): 20, |
| 1565 |
(20, 'i'): 20, |
| 1566 |
(20, 'j'): 20, |
| 1567 |
(20, 'k'): 20, |
| 1568 |
(20, 'l'): 20, |
| 1569 |
(20, 'm'): 20, |
| 1570 |
(20, 'n'): 20, |
| 1571 |
(20, 'o'): 20, |
| 1572 |
(20, 'p'): 20, |
| 1573 |
(20, 'q'): 20, |
| 1574 |
(20, 'r'): 20, |
| 1575 |
(20, 's'): 20, |
| 1576 |
(20, 't'): 20, |
| 1577 |
(20, 'u'): 20, |
| 1578 |
(20, 'v'): 20, |
| 1579 |
(20, 'w'): 20, |
| 1580 |
(20, 'x'): 20, |
| 1581 |
(20, 'y'): 20, |
| 1582 |
(20, 'z'): 20, |
| 1583 |
(22, "'"): 23, |
| 1584 |
(24, '\x00'): 5, |
| 1585 |
(24, '\x01'): 5, |
| 1586 |
(24, '\x02'): 5, |
| 1587 |
(24, '\x03'): 5, |
| 1588 |
(24, '\x04'): 5, |
| 1589 |
(24, '\x05'): 5, |
| 1590 |
(24, '\x06'): 5, |
| 1591 |
(24, '\x07'): 5, |
| 1592 |
(24, '\x08'): 5, |
| 1593 |
(24, '\t'): 5, |
| 1594 |
(24, '\n'): 5, |
| 1595 |
(24, '\x0b'): 5, |
| 1596 |
(24, '\x0c'): 5, |
| 1597 |
(24, '\r'): 5, |
| 1598 |
(24, '\x0e'): 5, |
| 1599 |
(24, '\x0f'): 5, |
| 1600 |
(24, '\x10'): 5, |
| 1601 |
(24, '\x11'): 5, |
| 1602 |
(24, '\x12'): 5, |
| 1603 |
(24, '\x13'): 5, |
| 1604 |
(24, '\x14'): 5, |
| 1605 |
(24, '\x15'): 5, |
| 1606 |
(24, '\x16'): 5, |
| 1607 |
(24, '\x17'): 5, |
| 1608 |
(24, '\x18'): 5, |
| 1609 |
(24, '\x19'): 5, |
| 1610 |
(24, '\x1a'): 5, |
| 1611 |
(24, '\x1b'): 5, |
| 1612 |
(24, '\x1c'): 5, |
| 1613 |
(24, '\x1d'): 5, |
| 1614 |
(24, '\x1e'): 5, |
| 1615 |
(24, '\x1f'): 5, |
| 1616 |
(24, ' '): 5, |
| 1617 |
(24, '!'): 5, |
| 1618 |
(24, '"'): 26, |
| 1619 |
(24, '#'): 5, |
| 1620 |
(24, '$'): 5, |
| 1621 |
(24, '%'): 5, |
| 1622 |
(24, '&'): 5, |
| 1623 |
(24, "'"): 5, |
| 1624 |
(24, '('): 5, |
| 1625 |
(24, ')'): 5, |
| 1626 |
(24, '*'): 5, |
| 1627 |
(24, '+'): 5, |
| 1628 |
(24, ','): 5, |
| 1629 |
(24, '-'): 5, |
| 1630 |
(24, '.'): 5, |
| 1631 |
(24, '/'): 5, |
| 1632 |
(24, '0'): 5, |
| 1633 |
(24, '1'): 5, |
| 1634 |
(24, '2'): 5, |
| 1635 |
(24, '3'): 5, |
| 1636 |
(24, '4'): 5, |
| 1637 |
(24, '5'): 5, |
| 1638 |
(24, '6'): 5, |
| 1639 |
(24, '7'): 5, |
| 1640 |
(24, '8'): 5, |
| 1641 |
(24, '9'): 5, |
| 1642 |
(24, ':'): 5, |
| 1643 |
(24, ';'): 5, |
| 1644 |
(24, '<'): 5, |
| 1645 |
(24, '='): 5, |
| 1646 |
(24, '>'): 5, |
| 1647 |
(24, '?'): 5, |
| 1648 |
(24, '@'): 5, |
| 1649 |
(24, 'A'): 5, |
| 1650 |
(24, 'B'): 5, |
| 1651 |
(24, 'C'): 5, |
| 1652 |
(24, 'D'): 5, |
| 1653 |
(24, 'E'): 5, |
| 1654 |
(24, 'F'): 5, |
| 1655 |
(24, 'G'): 5, |
| 1656 |
(24, 'H'): 5, |
| 1657 |
(24, 'I'): 5, |
| 1658 |
(24, 'J'): 5, |
| 1659 |
(24, 'K'): 5, |
| 1660 |
(24, 'L'): 5, |
| 1661 |
(24, 'M'): 5, |
| 1662 |
(24, 'N'): 5, |
| 1663 |
(24, 'O'): 5, |
| 1664 |
(24, 'P'): 5, |
| 1665 |
(24, 'Q'): 5, |
| 1666 |
(24, 'R'): 5, |
| 1667 |
(24, 'S'): 5, |
| 1668 |
(24, 'T'): 5, |
| 1669 |
(24, 'U'): 5, |
| 1670 |
(24, 'V'): 5, |
| 1671 |
(24, 'W'): 5, |
| 1672 |
(24, 'X'): 5, |
| 1673 |
(24, 'Y'): 5, |
| 1674 |
(24, 'Z'): 5, |
| 1675 |
(24, '['): 5, |
| 1676 |
(24, '\\'): 24, |
| 1677 |
(24, ']'): 5, |
| 1678 |
(24, '^'): 5, |
| 1679 |
(24, '_'): 5, |
| 1680 |
(24, '`'): 5, |
| 1681 |
(24, 'a'): 5, |
| 1682 |
(24, 'b'): 5, |
| 1683 |
(24, 'c'): 5, |
| 1684 |
(24, 'd'): 5, |
| 1685 |
(24, 'e'): 5, |
| 1686 |
(24, 'f'): 5, |
| 1687 |
(24, 'g'): 5, |
| 1688 |
(24, 'h'): 5, |
| 1689 |
(24, 'i'): 5, |
| 1690 |
(24, 'j'): 5, |
| 1691 |
(24, 'k'): 5, |
| 1692 |
(24, 'l'): 5, |
| 1693 |
(24, 'm'): 5, |
| 1694 |
(24, 'n'): 5, |
| 1695 |
(24, 'o'): 5, |
| 1696 |
(24, 'p'): 5, |
| 1697 |
(24, 'q'): 5, |
| 1698 |
(24, 'r'): 5, |
| 1699 |
(24, 's'): 5, |
| 1700 |
(24, 't'): 5, |
| 1701 |
(24, 'u'): 5, |
| 1702 |
(24, 'v'): 5, |
| 1703 |
(24, 'w'): 5, |
| 1704 |
(24, 'x'): 5, |
| 1705 |
(24, 'y'): 5, |
| 1706 |
(24, 'z'): 5, |
| 1707 |
(24, '{'): 5, |
| 1708 |
(24, '|'): 5, |
| 1709 |
(24, '}'): 5, |
| 1710 |
(24, '~'): 5, |
| 1711 |
(24, '\x7f'): 5, |
| 1712 |
(24, '\x80'): 5, |
| 1713 |
(24, '\x81'): 5, |
| 1714 |
(24, '\x82'): 5, |
| 1715 |
(24, '\x83'): 5, |
| 1716 |
(24, '\x84'): 5, |
| 1717 |
(24, '\x85'): 5, |
| 1718 |
(24, '\x86'): 5, |
| 1719 |
(24, '\x87'): 5, |
| 1720 |
(24, '\x88'): 5, |
| 1721 |
(24, '\x89'): 5, |
| 1722 |
(24, '\x8a'): 5, |
| 1723 |
(24, '\x8b'): 5, |
| 1724 |
(24, '\x8c'): 5, |
| 1725 |
(24, '\x8d'): 5, |
| 1726 |
(24, '\x8e'): 5, |
| 1727 |
(24, '\x8f'): 5, |
| 1728 |
(24, '\x90'): 5, |
| 1729 |
(24, '\x91'): 5, |
| 1730 |
(24, '\x92'): 5, |
| 1731 |
(24, '\x93'): 5, |
| 1732 |
(24, '\x94'): 5, |
| 1733 |
(24, '\x95'): 5, |
| 1734 |
(24, '\x96'): 5, |
| 1735 |
(24, '\x97'): 5, |
| 1736 |
(24, '\x98'): 5, |
| 1737 |
(24, '\x99'): 5, |
| 1738 |
(24, '\x9a'): 5, |
| 1739 |
(24, '\x9b'): 5, |
| 1740 |
(24, '\x9c'): 5, |
| 1741 |
(24, '\x9d'): 5, |
| 1742 |
(24, '\x9e'): 5, |
| 1743 |
(24, '\x9f'): 5, |
| 1744 |
(24, '\xa0'): 5, |
| 1745 |
(24, '\xa1'): 5, |
| 1746 |
(24, '\xa2'): 5, |
| 1747 |
(24, '\xa3'): 5, |
| 1748 |
(24, '\xa4'): 5, |
| 1749 |
(24, '\xa5'): 5, |
| 1750 |
(24, '\xa6'): 5, |
| 1751 |
(24, '\xa7'): 5, |
| 1752 |
(24, '\xa8'): 5, |
| 1753 |
(24, '\xa9'): 5, |
| 1754 |
(24, '\xaa'): 5, |
| 1755 |
(24, '\xab'): 5, |
| 1756 |
(24, '\xac'): 5, |
| 1757 |
(24, '\xad'): 5, |
| 1758 |
(24, '\xae'): 5, |
| 1759 |
(24, '\xaf'): 5, |
| 1760 |
(24, '\xb0'): 5, |
| 1761 |
(24, '\xb1'): 5, |
| 1762 |
(24, '\xb2'): 5, |
| 1763 |
(24, '\xb3'): 5, |
| 1764 |
(24, '\xb4'): 5, |
| 1765 |
(24, '\xb5'): 5, |
| 1766 |
(24, '\xb6'): 5, |
| 1767 |
(24, '\xb7'): 5, |
| 1768 |
(24, '\xb8'): 5, |
| 1769 |
(24, '\xb9'): 5, |
| 1770 |
(24, '\xba'): 5, |
| 1771 |
(24, '\xbb'): 5, |
| 1772 |
(24, '\xbc'): 5, |
| 1773 |
(24, '\xbd'): 5, |
| 1774 |
(24, '\xbe'): 5, |
| 1775 |
(24, '\xbf'): 5, |
| 1776 |
(24, '\xc0'): 5, |
| 1777 |
(24, '\xc1'): 5, |
| 1778 |
(24, '\xc2'): 5, |
| 1779 |
(24, '\xc3'): 5, |
| 1780 |
(24, '\xc4'): 5, |
| 1781 |
(24, '\xc5'): 5, |
| 1782 |
(24, '\xc6'): 5, |
| 1783 |
(24, '\xc7'): 5, |
| 1784 |
(24, '\xc8'): 5, |
| 1785 |
(24, '\xc9'): 5, |
| 1786 |
(24, '\xca'): 5, |
| 1787 |
(24, '\xcb'): 5, |
| 1788 |
(24, '\xcc'): 5, |
| 1789 |
(24, '\xcd'): 5, |
| 1790 |
(24, '\xce'): 5, |
| 1791 |
(24, '\xcf'): 5, |
| 1792 |
(24, '\xd0'): 5, |
| 1793 |
(24, '\xd1'): 5, |
| 1794 |
(24, '\xd2'): 5, |
| 1795 |
(24, '\xd3'): 5, |
| 1796 |
(24, '\xd4'): 5, |
| 1797 |
(24, '\xd5'): 5, |
| 1798 |
(24, '\xd6'): 5, |
| 1799 |
(24, '\xd7'): 5, |
| 1800 |
(24, '\xd8'): 5, |
| 1801 |
(24, '\xd9'): 5, |
| 1802 |
(24, '\xda'): 5, |
| 1803 |
(24, '\xdb'): 5, |
| 1804 |
(24, '\xdc'): 5, |
| 1805 |
(24, '\xdd'): 5, |
| 1806 |
(24, '\xde'): 5, |
| 1807 |
(24, '\xdf'): 5, |
| 1808 |
(24, '\xe0'): 5, |
| 1809 |
(24, '\xe1'): 5, |
| 1810 |
(24, '\xe2'): 5, |
| 1811 |
(24, '\xe3'): 5, |
| 1812 |
(24, '\xe4'): 5, |
| 1813 |
(24, '\xe5'): 5, |
| 1814 |
(24, '\xe6'): 5, |
| 1815 |
(24, '\xe7'): 5, |
| 1816 |
(24, '\xe8'): 5, |
| 1817 |
(24, '\xe9'): 5, |
| 1818 |
(24, '\xea'): 5, |
| 1819 |
(24, '\xeb'): 5, |
| 1820 |
(24, '\xec'): 5, |
| 1821 |
(24, '\xed'): 5, |
| 1822 |
(24, '\xee'): 5, |
| 1823 |
(24, '\xef'): 5, |
| 1824 |
(24, '\xf0'): 5, |
| 1825 |
(24, '\xf1'): 5, |
| 1826 |
(24, '\xf2'): 5, |
| 1827 |
(24, '\xf3'): 5, |
| 1828 |
(24, '\xf4'): 5, |
| 1829 |
(24, '\xf5'): 5, |
| 1830 |
(24, '\xf6'): 5, |
| 1831 |
(24, '\xf7'): 5, |
| 1832 |
(24, '\xf8'): 5, |
| 1833 |
(24, '\xf9'): 5, |
| 1834 |
(24, '\xfa'): 5, |
| 1835 |
(24, '\xfb'): 5, |
| 1836 |
(24, '\xfc'): 5, |
| 1837 |
(24, '\xfd'): 5, |
| 1838 |
(24, '\xfe'): 5, |
| 1839 |
(24, '\xff'): 5, |
| 1840 |
(26, '\x00'): 5, |
| 1841 |
(26, '\x01'): 5, |
| 1842 |
(26, '\x02'): 5, |
| 1843 |
(26, '\x03'): 5, |
| 1844 |
(26, '\x04'): 5, |
| 1845 |
(26, '\x05'): 5, |
| 1846 |
(26, '\x06'): 5, |
| 1847 |
(26, '\x07'): 5, |
| 1848 |
(26, '\x08'): 5, |
| 1849 |
(26, '\t'): 5, |
| 1850 |
(26, '\n'): 5, |
| 1851 |
(26, '\x0b'): 5, |
| 1852 |
(26, '\x0c'): 5, |
| 1853 |
(26, '\r'): 5, |
| 1854 |
(26, '\x0e'): 5, |
| 1855 |
(26, '\x0f'): 5, |
| 1856 |
(26, '\x10'): 5, |
| 1857 |
(26, '\x11'): 5, |
| 1858 |
(26, '\x12'): 5, |
| 1859 |
(26, '\x13'): 5, |
| 1860 |
(26, '\x14'): 5, |
| 1861 |
(26, '\x15'): 5, |
| 1862 |
(26, '\x16'): 5, |
| 1863 |
(26, '\x17'): 5, |
| 1864 |
(26, '\x18'): 5, |
| 1865 |
(26, '\x19'): 5, |
| 1866 |
(26, '\x1a'): 5, |
| 1867 |
(26, '\x1b'): 5, |
| 1868 |
(26, '\x1c'): 5, |
| 1869 |
(26, '\x1d'): 5, |
| 1870 |
(26, '\x1e'): 5, |
| 1871 |
(26, '\x1f'): 5, |
| 1872 |
(26, ' '): 5, |
| 1873 |
(26, '!'): 5, |
| 1874 |
(26, '"'): 25, |
| 1875 |
(26, '#'): 5, |
| 1876 |
(26, '$'): 5, |
| 1877 |
(26, '%'): 5, |
| 1878 |
(26, '&'): 5, |
| 1879 |
(26, "'"): 5, |
| 1880 |
(26, '('): 5, |
| 1881 |
(26, ')'): 5, |
| 1882 |
(26, '*'): 5, |
| 1883 |
(26, '+'): 5, |
| 1884 |
(26, ','): 5, |
| 1885 |
(26, '-'): 5, |
| 1886 |
(26, '.'): 5, |
| 1887 |
(26, '/'): 5, |
| 1888 |
(26, '0'): 5, |
| 1889 |
(26, '1'): 5, |
| 1890 |
(26, '2'): 5, |
| 1891 |
(26, '3'): 5, |
| 1892 |
(26, '4'): 5, |
| 1893 |
(26, '5'): 5, |
| 1894 |
(26, '6'): 5, |
| 1895 |
(26, '7'): 5, |
| 1896 |
(26, '8'): 5, |
| 1897 |
(26, '9'): 5, |
| 1898 |
(26, ':'): 5, |
| 1899 |
(26, ';'): 5, |
| 1900 |
(26, '<'): 5, |
| 1901 |
(26, '='): 5, |
| 1902 |
(26, '>'): 5, |
| 1903 |
(26, '?'): 5, |
| 1904 |
(26, '@'): 5, |
| 1905 |
(26, 'A'): 5, |
| 1906 |
(26, 'B'): 5, |
| 1907 |
(26, 'C'): 5, |
| 1908 |
(26, 'D'): 5, |
| 1909 |
(26, 'E'): 5, |
| 1910 |
(26, 'F'): 5, |
| 1911 |
(26, 'G'): 5, |
| 1912 |
(26, 'H'): 5, |
| 1913 |
(26, 'I'): 5, |
| 1914 |
(26, 'J'): 5, |
| 1915 |
(26, 'K'): 5, |
| 1916 |
(26, 'L'): 5, |
| 1917 |
(26, 'M'): 5, |
| 1918 |
(26, 'N'): 5, |
| 1919 |
(26, 'O'): 5, |
| 1920 |
(26, 'P'): 5, |
| 1921 |
(26, 'Q'): 5, |
| 1922 |
(26, 'R'): 5, |
| 1923 |
(26, 'S'): 5, |
| 1924 |
(26, 'T'): 5, |
| 1925 |
(26, 'U'): 5, |
| 1926 |
(26, 'V'): 5, |
| 1927 |
(26, 'W'): 5, |
| 1928 |
(26, 'X'): 5, |
| 1929 |
(26, 'Y'): 5, |
| 1930 |
(26, 'Z'): 5, |
| 1931 |
(26, '['): 5, |
| 1932 |
(26, '\\'): 5, |
| 1933 |
(26, ']'): 5, |
| 1934 |
(26, '^'): 5, |
| 1935 |
(26, '_'): 5, |
| 1936 |
(26, '`'): 5, |
| 1937 |
(26, 'a'): 5, |
| 1938 |
(26, 'b'): 5, |
| 1939 |
(26, 'c'): 5, |
| 1940 |
(26, 'd'): 5, |
| 1941 |
(26, 'e'): 5, |
| 1942 |
(26, 'f'): 5, |
| 1943 |
(26, 'g'): 5, |
| 1944 |
(26, 'h'): 5, |
| 1945 |
(26, 'i'): 5, |
| 1946 |
(26, 'j'): 5, |
| 1947 |
(26, 'k'): 5, |
| 1948 |
(26, 'l'): 5, |
| 1949 |
(26, 'm'): 5, |
| 1950 |
(26, 'n'): 5, |
| 1951 |
(26, 'o'): 5, |
| 1952 |
(26, 'p'): 5, |
| 1953 |
(26, 'q'): 5, |
| 1954 |
(26, 'r'): 5, |
| 1955 |
(26, 's'): 5, |
| 1956 |
(26, 't'): 5, |
| 1957 |
(26, 'u'): 5, |
| 1958 |
(26, 'v'): 5, |
| 1959 |
(26, 'w'): 5, |
| 1960 |
(26, 'x'): 5, |
| 1961 |
(26, 'y'): 5, |
| 1962 |
(26, 'z'): 5, |
| 1963 |
(26, '{'): 5, |
| 1964 |
(26, '|'): 5, |
| 1965 |
(26, '}'): 5, |
| 1966 |
(26, '~'): 5, |
| 1967 |
(26, '\x7f'): 5, |
| 1968 |
(26, '\x80'): 5, |
| 1969 |
(26, '\x81'): 5, |
| 1970 |
(26, '\x82'): 5, |
| 1971 |
(26, '\x83'): 5, |
| 1972 |
(26, '\x84'): 5, |
| 1973 |
(26, '\x85'): 5, |
| 1974 |
(26, '\x86'): 5, |
| 1975 |
(26, '\x87'): 5, |
| 1976 |
(26, '\x88'): 5, |
| 1977 |
(26, '\x89'): 5, |
| 1978 |
(26, '\x8a'): 5, |
| 1979 |
(26, '\x8b'): 5, |
| 1980 |
(26, '\x8c'): 5, |
| 1981 |
(26, '\x8d'): 5, |
| 1982 |
(26, '\x8e'): 5, |
| 1983 |
(26, '\x8f'): 5, |
| 1984 |
(26, '\x90'): 5, |
| 1985 |
(26, '\x91'): 5, |
| 1986 |
(26, '\x92'): 5, |
| 1987 |
(26, '\x93'): 5, |
| 1988 |
(26, '\x94'): 5, |
| 1989 |
(26, '\x95'): 5, |
| 1990 |
(26, '\x96'): 5, |
| 1991 |
(26, '\x97'): 5, |
| 1992 |
(26, '\x98'): 5, |
| 1993 |
(26, '\x99'): 5, |
| 1994 |
(26, '\x9a'): 5, |
| 1995 |
(26, '\x9b'): 5, |
| 1996 |
(26, '\x9c'): 5, |
| 1997 |
(26, '\x9d'): 5, |
| 1998 |
(26, '\x9e'): 5, |
| 1999 |
(26, '\x9f'): 5, |
| 2000 |
(26, '\xa0'): 5, |
| 2001 |
(26, '\xa1'): 5, |
| 2002 |
(26, '\xa2'): 5, |
| 2003 |
(26, '\xa3'): 5, |
| 2004 |
(26, '\xa4'): 5, |
| 2005 |
(26, '\xa5'): 5, |
| 2006 |
(26, '\xa6'): 5, |
| 2007 |
(26, '\xa7'): 5, |
| 2008 |
(26, '\xa8'): 5, |
| 2009 |
(26, '\xa9'): 5, |
| 2010 |
(26, '\xaa'): 5, |
| 2011 |
(26, '\xab'): 5, |
| 2012 |
(26, '\xac'): 5, |
| 2013 |
(26, '\xad'): 5, |
| 2014 |
(26, '\xae'): 5, |
| 2015 |
(26, '\xaf'): 5, |
| 2016 |
(26, '\xb0'): 5, |
| 2017 |
(26, '\xb1'): 5, |
| 2018 |
(26, '\xb2'): 5, |
| 2019 |
(26, '\xb3'): 5, |
| 2020 |
(26, '\xb4'): 5, |
| 2021 |
(26, '\xb5'): 5, |
| 2022 |
(26, '\xb6'): 5, |
| 2023 |
(26, '\xb7'): 5, |
| 2024 |
(26, '\xb8'): 5, |
| 2025 |
(26, '\xb9'): 5, |
| 2026 |
(26, '\xba'): 5, |
| 2027 |
(26, '\xbb'): 5, |
| 2028 |
(26, '\xbc'): 5, |
| 2029 |
(26, '\xbd'): 5, |
| 2030 |
(26, '\xbe'): 5, |
| 2031 |
(26, '\xbf'): 5, |
| 2032 |
(26, '\xc0'): 5, |
| 2033 |
(26, '\xc1'): 5, |
| 2034 |
(26, '\xc2'): 5, |
| 2035 |
(26, '\xc3'): 5, |
| 2036 |
(26, '\xc4'): 5, |
| 2037 |
(26, '\xc5'): 5, |
| 2038 |
(26, '\xc6'): 5, |
| 2039 |
(26, '\xc7'): 5, |
| 2040 |
(26, '\xc8'): 5, |
| 2041 |
(26, '\xc9'): 5, |
| 2042 |
(26, '\xca'): 5, |
| 2043 |
(26, '\xcb'): 5, |
| 2044 |
(26, '\xcc'): 5, |
| 2045 |
(26, '\xcd'): 5, |
| 2046 |
(26, '\xce'): 5, |
| 2047 |
(26, '\xcf'): 5, |
| 2048 |
(26, '\xd0'): 5, |
| 2049 |
(26, '\xd1'): 5, |
| 2050 |
(26, '\xd2'): 5, |
| 2051 |
(26, '\xd3'): 5, |
| 2052 |
(26, '\xd4'): 5, |
| 2053 |
(26, '\xd5'): 5, |
| 2054 |
(26, '\xd6'): 5, |
| 2055 |
(26, '\xd7'): 5, |
| 2056 |
(26, '\xd8'): 5, |
| 2057 |
(26, '\xd9'): 5, |
| 2058 |
(26, '\xda'): 5, |
| 2059 |
(26, '\xdb'): 5, |
| 2060 |
(26, '\xdc'): 5, |
| 2061 |
(26, '\xdd'): 5, |
| 2062 |
(26, '\xde'): 5, |
| 2063 |
(26, '\xdf'): 5, |
| 2064 |
(26, '\xe0'): 5, |
| 2065 |
(26, '\xe1'): 5, |
| 2066 |
(26, '\xe2'): 5, |
| 2067 |
(26, '\xe3'): 5, |
| 2068 |
(26, '\xe4'): 5, |
| 2069 |
(26, '\xe5'): 5, |
| 2070 |
(26, '\xe6'): 5, |
| 2071 |
(26, '\xe7'): 5, |
| 2072 |
(26, '\xe8'): 5, |
| 2073 |
(26, '\xe9'): 5, |
| 2074 |
(26, '\xea'): 5, |
| 2075 |
(26, '\xeb'): 5, |
| 2076 |
(26, '\xec'): 5, |
| 2077 |
(26, '\xed'): 5, |
| 2078 |
(26, '\xee'): 5, |
| 2079 |
(26, '\xef'): 5, |
| 2080 |
(26, '\xf0'): 5, |
| 2081 |
(26, '\xf1'): 5, |
| 2082 |
(26, '\xf2'): 5, |
| 2083 |
(26, '\xf3'): 5, |
| 2084 |
(26, '\xf4'): 5, |
| 2085 |
(26, '\xf5'): 5, |
| 2086 |
(26, '\xf6'): 5, |
| 2087 |
(26, '\xf7'): 5, |
| 2088 |
(26, '\xf8'): 5, |
| 2089 |
(26, '\xf9'): 5, |
| 2090 |
(26, '\xfa'): 5, |
| 2091 |
(26, '\xfb'): 5, |
| 2092 |
(26, '\xfc'): 5, |
| 2093 |
(26, '\xfd'): 5, |
| 2094 |
(26, '\xfe'): 5, |
| 2095 |
(26, '\xff'): 5}, |
| 2096 |
set([1, 2, 3, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 27]), |
| 2097 |
set([1, 2, 3, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 27]), |
| 2098 |
['0, 0, 0, final*, 0, final*, start*, 0, final*, 0, 1, final*, start*, 0, 0, 0, 0, 0, 0, start|, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0', |
| 2099 |
'IGNORE', |
| 2100 |
'IGNORE', |
| 2101 |
'IGNORE', |
| 2102 |
'1, final*, 0, start|, 0, final*, start*, 0, final*, 0, 1, final|, start|, 0, final*, start*, 0, final*, 0, final|, start|, 0, 1, final*, start*, 0', |
| 2103 |
'1, final*, 0, final*, start*, start|, 0, final|, final*, start*, final*, 0, 0, start|, 0, final*, 0, final*, 0, 1, final|, final*, 0, final|, final*, start*, final*, 0, 0, start|, 0, final*, start|, 0, start*, final*, 0, final*, final|, final*, 0, 1, final*, start*, final*, 0, 0, final|, start|, 0, start|, 0, start*, final*, 0, 1, final|, start|, 0, final*, start*, final*, 0, final*, 1, final|, final*, 0, start|, 0, final*, start*, final*, start*, final*, 0, final|, start|, 0, 0, final*, 0, final|, start|, 0, 1, final*, start*, final*, 0, final*, final|, 1, final*, 0, start|, 0, final*, start*, final*, start*, final*, 0, final|, start|, 0, 0, 0, final*, start*, final*, start*, final*, 0, final|, start|, 0, final*, 0, 0, final*, 1, final|, final*, 0, start|, 0, final*, start*, final*, start*, final*, 0, final|, start|, 0, final*, 0, 0, final*, final|, 1, final*, 0, start|, 0, final*, start*, final*, start*, final*, 0, final|, start|, 0, final*, 0, 0, final*, final*, 0, 1, final|, start|, 0, 1, final*, start*, final*, start*, final*, 0, final|, start|, 0, final*, 0, 0, final*, final*, 0, final|, start|, 0, final*, start*, final*, start*, final*, 0, final|, start|, 0, final*, 0, 0, final*, 1, final|, final*, 0, 1, final|, start|, 0, 1, final*, start*, final*, start*, final*, 0, final|, start|, 0, final*, 0, 0, final*, final|, 1, final*, 0, final|, start|, final*, 0, 1, final|, start|, 0, final*, start*, final*, 0, final*, 1, final|, final*, 0, 1, final|, start|, 0, final*, start*, final*, start*, final*, 0, final|, start|, 0, 0, final*, 0, final|, start|, 0, 1, final*, start*, final*, 0, final*, final|, 1, final*, 0, final|, start|, 0, 1, final*, start*, final*, start*, final*, 0, final|, start|, 0, 0, final*, 0, 1, final|, start|, 0, final*, start*, final*, 0, final*, final*, 0, 1, final|, start|, 0, final*, start*, final*, start*, final*, 0, final|, start|, 0, 0, final*, 0, final|, start|, 0, 1, final*, start*, final*, 0, final*, final*, 0, final|, start|, 0, 1, final*, start*, final*, start*, final*, 0, final|, start|, 0, 0', |
| 2104 |
'1', |
| 2105 |
'__11_)', |
| 2106 |
'__10_(', |
| 2107 |
'__4_+', |
| 2108 |
'__3_*', |
| 2109 |
'__1_;', |
| 2110 |
'__0_:', |
| 2111 |
'__9_<', |
| 2112 |
'__5_?', |
| 2113 |
'__8_>', |
| 2114 |
'SYMBOLNAME', |
| 2115 |
'__6_[', |
| 2116 |
'__7_]', |
| 2117 |
'NONTERMINALNAME', |
| 2118 |
'NONTERMINALNAME', |
| 2119 |
'__2_|', |
| 2120 |
'2', |
| 2121 |
'QUOTE', |
| 2122 |
'final*, 0, 1, final*, 0, final|, start|, 0, final*, 0, final|, start|, 0, 1, final*, 0, final|, start|, 0, 1, final*, start*, final*, start*, final*, 0, final|, start|, 0, 1, 0, final*, 0, final|, start|, 0, 1, final*, start*, final*, 0, 1, final*, 0, final|, start|, 0, 0, start|, 0, final*, start*, final*, 0, final|, start|, 0, 1, 0, final*, 0, final|, start|, 0, 1, final*, start*, final*, 0, 1, final*, 0, final|, start|, 0, final*, 0, start|, 0, final*, 0, final|, start|, 0, 1, final*, start*, final*, start*, final*, 0, final|, start|, 0, 1, 0, final*, 0, final|, start|, 0, 1, final*, start*, final*, 0, 1, final*, 0, final|, start|, 0, final*, 0, final|, start|, 0, 1, final*, 0, start|, 0, final*, start*, final*, start*, final*, 0, final|, start|, 0, 1, 0, final*, 0, final|, start|, 0, 1, final*, start*, final*, 0, 1, final*, 0, final|, start|, 0, final*, 0, final|, start|, 0, 1, final*, 0, final|, start|, 0, 1, final*, start*, final*, start*, final*, 0, final|, start|, 0, 1, 0, final*, 0, 1, final*, 0, final|, start|, 0, final*, 0, start|, 0, final*, 0, final|, start|, 0, 1, final*, start*, final*, start*, final*, 0, final|, start|, 0, 1, 0', |
| 2123 |
'QUOTE', |
| 2124 |
'QUOTE', |
| 2125 |
'IGNORE']), {'IGNORE': None}) |
| 2126 |
|
| 2127 |
|
| 2128 |
if __name__ == '__main__': |
| 2129 |
f = py.path.local(__file__) |
| 2130 |
oldcontent = f.read() |
| 2131 |
s = "# GENERATED CODE BETWEEN THIS LINE AND ITS OTHER OCCURENCE\n".lower() |
| 2132 |
pre, gen, after = oldcontent.split(s) |
| 2133 |
|
| 2134 |
parser, lexer, ToAST = make_ebnf_parser() |
| 2135 |
transformer = ToAST.source |
| 2136 |
newcontent = "%s%s%s\nparser = %r\n%s\n%s%s" % ( |
| 2137 |
pre, s, transformer.replace("ToAST", "EBNFToAST"), |
| 2138 |
parser, lexer.get_dummy_repr(), s, after) |
| 2139 |
print(newcontent) |
| 2140 |
f.write(newcontent) |