예제 #1
0
        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();
            }
        }
예제 #2
0
 public void Seek(SheepScannerPosition position)
 {
     _position = position;
     clearTokenBuffer(MAX_TOKEN_LENGTH);
 }