private void parseStatementList(SheepCodeTreeNode2 node) { ScannedToken token = _scanner.GetNextToken(); while (token.Type != SheepTokenType.None) { if (token.Type == SheepTokenType.RBrace) { break; // done with this function } SheepScannerPosition currentPos = _scanner.CurrentPosition; parseClosedStatement(token, node); token = _scanner.GetNextToken(); } }
public void Seek(SheepScannerPosition position) { _position = position; clearTokenBuffer(MAX_TOKEN_LENGTH); }