This commit is contained in:
bill
2021-02-20 23:24:11 +08:00
parent ab6c72e690
commit b2536564bc
2 changed files with 10 additions and 14 deletions
-3
View File
@@ -46,7 +46,6 @@ import java.util.ArrayList;
/** Return a terminal symbol of syntactic category TYPE and semantic
* value VALUE at the current source location. */
private Symbol symbol(int type, Object value) {
//System.out.println(yytext() + ChocoPyTokens.terminalNames[type]);
return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[type], type,
new ComplexSymbolFactory.Location(yyline + 1, yycolumn + 1),
new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()),
@@ -136,7 +135,6 @@ if True:
AFTER state.
*/
pop();
//System.out.println("dedent");
return symbol(ChocoPyTokens.DEDENT, currIndent);
}
/*Otherwise, we will start dealing with the rest
@@ -149,7 +147,6 @@ if True:
current level should have, start a new level which will have
`currIndent' indents.
*/
//System.out.println("indent");
push(currIndent);
return symbol(ChocoPyTokens.INDENT, currIndent);