Home | History | Annotate | Download | only in python2.7

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("\\"))
146 UNITCODES = (ANY, RANGE, IN, LITERAL, NOT_LITERAL, CATEGORY)
243 return LITERAL, int(escape, 16) & 0xff
249 return LITERAL, int(escape, 8) & 0xff
253 return LITERAL, ord(escape[1])
274 return LITERAL, int(escape[2:], 16) & 0xff
279 return LITERAL, int(escape[1:], 8) & 0xff
288 return LITERAL, int(escape[1:], 8) & 0xff
297 return LITERAL, ord(escape[1])
346 if len(item) != 1 or item[0][0] != LITERAL:
414 subpatternappend((LITERAL, ord(this)))
433 code1 = LITERAL, ord(this)
443 setappend((LITERAL, ord("-")))
449 code2 = LITERAL, ord(this)
450 if code1[0] != LITERAL or code2[0] != LITERAL:
465 if _len(set)==1 and set[0][0] is LITERAL:
467 elif _len(set)==2 and set[0][0] is NEGATE and set[1][0] is LITERAL:
484 subpatternappend((LITERAL, ord(this)))
497 subpatternappend((LITERAL, ord(this)))
711 def literal(literal, p=p, pappend=a):
712 if p and p[-1][0] is LITERAL:
713 p[-1] = LITERAL, p[-1][1] + literal
715 pappend((LITERAL, literal))
757 literal(makechar(int(this[1:], 8) & 0xff))
766 literal(makechar(int(this[1:], 8) & 0xff))
774 literal(this)
776 literal(this)
785 # literal[i] is already None