iox/Shell.cs
/// <summary>
/// Run a syntax check only.
/// </summary>
Run a syntax check only.
Run a syntax check only .
void RunCheck () {
			var content = string.Empty;
			try {
				content = File.ReadAllText (Conf.File);
			} catch (FileNotFoundException ex) {
				ANSI.WriteLine (ex.Message);
				Environment.Exit (1);
			}
			Iodine.Engine.Context.ShouldCache = false;
			try {
				Iodine.CompileSource (content);
				ANSI.WriteLine ("OK - No syntax errors.");
			} catch (Iodine.Compiler.SyntaxException e) {
				ANSI.WriteLine ($"ERR - Syntax errors occurred.\n");
				IodineExceptionHandler.HandleSyntaxException (this, e);
			} catch (Exception e) {
				ANSI.WriteLine ($"ERR - {e.Message}");
			}
		}
void RunCheck ( ) { var content = string . Empty ; try { content = File . ReadAllText ( Conf . File ) ; } catch ( FileNotFoundException ex ) { ANSI . WriteLine ( ex . Message ) ; Environment . Exit ( 1 ) ; } Iodine . Engine . Context . ShouldCache = false ; try { Iodine . CompileSource ( content ) ; ANSI . WriteLine ( " " ) ; } catch ( Iodine . Compiler . SyntaxException e ) { ANSI . WriteLine ( $" ERR - Syntax errors occurred. \n " ) ; IodineExceptionHandler . HandleSyntaxException ( this , e ) ; } catch ( Exception e ) { ANSI . WriteLine ( $" ERR -  { e . Message } " ) ; } }
Run a syntax check only.
Run a syntax check only .
// Get the file // Compile the module