static void Main(string[] args) { bool canContinue = GuardUsage(args); if (canContinue) { var scannerContext = new ScannerContext(args[0], args[1]); ExecuteScanner(scannerContext); } }
private static void ExecuteScanner(ScannerContext scannerContext) { scannerContext.LoadInput(); scannerContext.ScanProgram(); scannerContext.FlushOutput(); }