public static void RunFromSource(string Code, DebugOptions Options) { Compiler.Options = Options; Run(Tokenizer.ParseInfixString(Code).Tokenize()); if (Options.OutputProfilerInfo) { Profiler.OutputTime(); } }
public static void RunFromFile(string Path, DebugOptions Options) { string source; using (var reader = new StreamReader(Path)) { source = reader.ReadToEnd(); } RunFromSource(source, Options); }
public static void RunFromSource( string Code, DebugOptions Options ) { Compiler.Options = Options; Run( Tokenizer.ParseInfixString( Code ).Tokenize() ); if ( Options.OutputProfilerInfo ) Profiler.OutputTime(); }
public static void RunFromFile( string Path, DebugOptions Options ) { string source; using ( var reader = new StreamReader( Path ) ) { source = reader.ReadToEnd(); } RunFromSource( source, Options ); }