Home
last modified time | relevance | path

Searched refs:DEDENT (Results 1 – 25 of 52) sorted by relevance

123

/external/antlr/runtime/JavaScript/tests/functional/
Drhino-python.extensions32 This is an interesting lexical problem because multiple DEDENT
41 Here the "b" token on the left edge signals that a DEDENT is needed
44 ... 1 COLON NEWLINE INDENT PRINT a NEWLINE DEDENT b ASSIGN 3 ...
49 Upon NEWLINE token from the lexer, however, an INDENT or DEDENT token
63 A queue of tokens is built up to hold multiple DEDENT tokens that
104 off, and for each number popped off a DEDENT token is
105 generated. At the end of the file, a DEDENT token is generated
185 var dedent = new ANTLR.runtime.CommonToken(PythonParser.DEDENT, "");
246 a a \n INDENT b b \n c \n DEDENT d \n EOF
251 a c \n INDENT b \n DEDENT c \n EOF
[all …]
/external/python/cpython3/Lib/test/
Dtest_tokenize.py645 DEDENT '' (4, 0) (4, 0)
646 DEDENT '' (4, 0) (4, 0)
824 DEDENT '' (4, 2) (4, 2)
832 DEDENT '' (6, 0) (6, 0)
833 DEDENT '' (6, 0) (6, 0)
858 DEDENT '' (3, 0) (3, 0)
906 DEDENT '' (7, 0) (7, 0)
944 DEDENT '' (7, 0) (7, 0)
/external/autotest/utils/
Dreindent.py259 DEDENT=tokenize.DEDENT, argument
274 elif type == DEDENT:
/external/python/cpython3/Lib/
Dtabnanny.py279 DEDENT = tokenize.DEDENT
303 elif type == DEDENT:
Dtokenize.py200 elif tok_type == DEDENT:
246 elif toknum == DEDENT:
517 yield TokenInfo(DEDENT, '', (lnum, pos), (lnum, pos), line)
608 yield TokenInfo(DEDENT, '', (lnum, 0), (lnum, 0), '')
Dtoken.py12 DEDENT = 6 variable
Dpyclbr.py45 from token import NAME, DEDENT, OP
201 if tokentype == DEDENT:
/external/python/cpython2/Lib/
Dtabnanny.py275 DEDENT = tokenize.DEDENT
299 elif type == DEDENT:
Dtokenize.py213 elif tok_type == DEDENT:
256 elif toknum == DEDENT:
383 yield (DEDENT, '', (lnum, pos), (lnum, pos), line)
451 yield (DEDENT, '', (lnum, 0), (lnum, 0), '')
Dpyclbr.py45 from token import NAME, DEDENT, OP
156 if tokentype == DEDENT:
/external/python/cpython2/Tools/scripts/
Dreindent.py289 DEDENT=tokenize.DEDENT, argument
304 elif type == DEDENT:
/external/python/cpython3/Tools/scripts/
Dreindent.py287 DEDENT=tokenize.DEDENT, argument
302 elif type == DEDENT:
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_metaclass.py137 if isinstance(node, Leaf) and node.type != token.DEDENT:
224 suite.children[-1].type == token.DEDENT):
/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_metaclass.py137 if isinstance(node, Leaf) and node.type != token.DEDENT:
224 suite.children[-1].type == token.DEDENT):
/external/yapf/yapf/yapflib/
Dcomment_splicer.py81 elif child.type == token.DEDENT:
121 if ancestor_at_indent.type == token.DEDENT:
/external/python/cpython3/Grammar/
DTokens7 DEDENT
/external/python/cpython2/Include/
Dtoken.h18 #define DEDENT 6 macro
/external/python/cpython2/Lib/lib2to3/pgen2/
Dtoken.py15 DEDENT = 6 variable
Dtokenize.py229 elif toknum == DEDENT:
431 yield (DEDENT, '', (lnum, pos), (lnum, pos), line)
496 yield (DEDENT, '', (lnum, 0), (lnum, 0), '')
/external/python/cpython2/Parser/
Dlistnode.c43 case DEDENT: in list1node()
/external/python/cpython3/Parser/
Dlistnode.c43 case DEDENT: in list1node()
/external/ply/ply/example/GardenSnake/
DGardenSnake.py230 def DEDENT(lineno): function
303 yield DEDENT(token.lineno)
314 yield DEDENT(token.lineno)
/external/python/cpython3/Lib/lib2to3/pgen2/
Dtoken.py15 DEDENT = 6 variable
Dtokenize.py217 elif toknum == DEDENT:
434 yield (DEDENT, '', (lnum, pos), (lnum, pos), line)
557 yield (DEDENT, '', (lnum, 0), (lnum, 0), '')
/external/python/cpython3/Include/
Dtoken.h19 #define DEDENT 6 macro

123