Beispiel #1
0
        public TokenCollection GetTokens()
        {
            tokenCollection.Clear();

            while (!toker.IsDone())
            {
                Token token = toker.GetToken();
                if (token != "\n")
                {
                    tokenCollection.Add(token);
                }
                if (IsTerminator(token))
                {
                    FoldForFor();
                    return(tokenCollection);
                }
            }
            return(tokenCollection);
        }
        void ReleasePoland()
        {
            m_PolandArray.Clear();

            m_OperatorArray.Clear();
        }