示例#1
0
  public IAST parse(TokenList tokens) throws CompileException {
    this.tokens = tokens;
    currentToken = tokens.nextToken();

    return parseProgram();
  }
示例#2
0
 private void acceptIt() {
   if (currentToken.getTokenKind() != TokenKind.EOT) currentToken = tokens.nextToken();
 }