コード例 #1
0
 public static void InitializeStructures()
 {
     int            MaxQuad     = 100;
     FileHandler    FileGetter  = new FileHandler();
     SymbolClass    SymbolTable = new SymbolClass(MaxQuad);
     TokenizerClass Tokenizer   = new TokenizerClass();
 }
コード例 #2
0
        public static void Main(string[] args)
        {
            bool   echoOn   = true;
            string fileName = "lexical_test.txt";

            InitializeStructures();
            FileHandler.InitializeInputFile(fileName);
            PrintHeader();



            while (!TokenizerClass.tokenizerFinished)
            {
                TokenizerClass.GetNextToken(echoOn);
                PrintToken(TokenizerClass.nextToken, TokenizerClass.tokenCode);
            }

            Console.WriteLine("Tokenizer Finished");
            Console.ReadLine();
        }