Home | History | Annotate | Download | only in pgen2

Lines Matching defs:string

12     the token (a string)
15 the original line (string)
32 import string, re
69 # Tail end of ' string.
71 # Tail end of " string.
73 # Tail end of ''' string.
75 # Tail end of """ string.
78 # Single-line ' or " string.
79 String = group(r"[uU]?[rR]?'[^\n'\\]*(?:\\.[^\n'\\]*)*'",
94 PlainToken = group(Number, Funny, String, Name)
97 # First (or only) line of ' or " string.
167 Each call to the function should return one line of input as a string.
259 (as a string) and a list of any lines (left as bytes) it has read
350 should return one line of input as a string. Alternately, readline
355 token string; a 2-tuple (srow, scol) of ints specifying the row and
362 namechars, numchars = string.ascii_letters + '_', '0123456789'
375 if contstr: # continued string
377 raise TokenError, ("EOF in multi-line string", strstart)
381 yield (STRING, contstr + line[:end],
460 yield (STRING, token, spos, (lnum, pos), line)
469 if token[-1] == '\n': # continued string
476 else: # ordinary string
477 yield (STRING, token, spos, epos, line)