Пример #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();
 }