public static void InitializeStructures() { int MaxQuad = 100; FileHandler FileGetter = new FileHandler(); SymbolClass SymbolTable = new SymbolClass(MaxQuad); TokenizerClass Tokenizer = new TokenizerClass(); }
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(); }