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

Lines Matching defs:string

9     the token (a string)
12 the original line (string)
29 import string, re
65 # Tail end of ' string.
67 # Tail end of " string.
69 # Tail end of ''' string.
71 # Tail end of """ string.
74 # Single-line ' or " string.
75 String = group(r"[uUbB]?[rR]?'[^\n'\\]*(?:\\.[^\n'\\]*)*'",
90 PlainToken = group(Number, Funny, String, Name)
93 # First (or only) line of ' or " string.
162 Each call to the function should return one line of input as a string.
223 if toknum == STRING:
269 should return one line of input as a string. Alternately, readline
274 token string; a 2-tuple (srow, scol) of ints specifying the row and
281 namechars, numchars = string.ascii_letters + '_', '0123456789'
294 if contstr: # continued string
296 raise TokenError, ("EOF in multi-line string", strstart)
300 yield (STRING, contstr + line[:end],
384 yield (STRING, token, spos, (lnum, pos), line)
393 if token[-1] == '\n': # continued string
400 else: # ordinary string
401 yield (STRING, token, spos, epos, line)