Esempio n. 1
0
        public bool doTest()
        {
            ReqDisplay.title("Requirement #10a");
            ReqDisplay.message("Testing special tokens");

            Lexer.Toker      toker       = new Lexer.Toker();
            HashSet <string> oneCharToks = toker.oneCharTokens();

            ReqDisplay.showSet(oneCharToks, "one char Tokens:");
            Console.Write("\n  adding token \"@\"");
            toker.addOneCharToken("@");
            ReqDisplay.showSet(oneCharToks, "one char Tokens:");
            Console.Write("\n  removing token \"@\"");
            toker.removeOneCharToken("@");
            ReqDisplay.showSet(oneCharToks, "one char Tokens:");
            HashSet <string> twoCharToks = toker.twoCharTokens();

            ReqDisplay.showSet(twoCharToks, "two char Tokens:");
            return(result);
        }