Lines Matching refs:LITERAL
31 r"\a": (LITERAL, ord("\a")),
32 r"\b": (LITERAL, ord("\b")),
33 r"\f": (LITERAL, ord("\f")),
34 r"\n": (LITERAL, ord("\n")),
35 r"\r": (LITERAL, ord("\r")),
36 r"\t": (LITERAL, ord("\t")),
37 r"\v": (LITERAL, ord("\v")),
38 r"\\": (LITERAL, ord("\\"))
157 UNITCODES = (ANY, RANGE, IN, LITERAL, NOT_LITERAL, CATEGORY)
254 return LITERAL, int(escape, 16) & 0xff
260 return LITERAL, int(escape, 8) & 0xff
273 return LITERAL, ord(escape[1])
294 return LITERAL, int(escape[2:], 16) & 0xff
299 return LITERAL, int(escape[1:], 8) & 0xff
308 return LITERAL, int(escape[1:], 8) & 0xff
331 return LITERAL, ord(escape[1])
380 if len(item) != 1 or item[0][0] != LITERAL:
448 subpatternappend((LITERAL, ord(this)))
467 code1 = LITERAL, ord(this)
477 setappend((LITERAL, ord("-")))
483 code2 = LITERAL, ord(this)
484 if code1[0] != LITERAL or code2[0] != LITERAL:
499 if _len(set)==1 and set[0][0] is LITERAL:
501 elif _len(set)==2 and set[0][0] is NEGATE and set[1][0] is LITERAL:
518 subpatternappend((LITERAL, ord(this)))
531 subpatternappend((LITERAL, ord(this)))
767 if p and p[-1][0] is LITERAL:
768 p[-1] = LITERAL, p[-1][1] + literal
770 pappend((LITERAL, literal))