예제 #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();
 }