Home | History | Annotate | Download | only in functional

Lines Matching refs:DEDENT

32  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
53 then check against stack for indent vs dedent. If LEADING_WS, then
55 dedent. The column of the next real token is number of spaces
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
133 // if not a NEWLINE, doesn't signal indent/dedent work; just enqueue
163 var cpos = t.getCharPositionInLine(); // column dictates indent/dedent
181 // how far back did we dedent?
185 var dedent = new ANTLR.runtime.CommonToken(PythonParser.DEDENT, "");
186 dedent.setCharPositionInLine(t.getCharPositionInLine());
187 dedent.setLine(t.getLine());
188 this.tokens.push(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
257 a \n INDENT b \n INDENT c \n DEDENT DEDENT d \n EOF
269 a \n INDENT c \n INDENT d \n DEDENT e \n f \n INDENT g \n h \n i \n INDENT j \n DEDENT DEDENT k \n DEDENT EOF
276 a \n INDENT b \n c \n INDENT d \n e \n DEDENT DEDENT EOF