Exemple #1
0
        static void Main(string[] args)
        {
            bool canContinue = GuardUsage(args);

            if (canContinue)
            {
                var scannerContext = new ScannerContext(args[0], args[1]);
                ExecuteScanner(scannerContext);
            }
        }
Exemple #2
0
 private static void ExecuteScanner(ScannerContext scannerContext)
 {
     scannerContext.LoadInput();
     scannerContext.ScanProgram();
     scannerContext.FlushOutput();
 }