Diff
Not logged in

Differences From Artifact [abae545f4409680b]:

To Artifact [981f3ba98be4374d]:


51 51 } catch(Throwable e) { 52 52 writeln(e); 53 53 } 54 54 return true; 55 55 } 56 56 } 57 57 58 -version(unittest) { 59 - bool success = false; 60 - static ~this(){ if(!success){writeln("(press enter to exit)"); readln();} } 61 -} 62 - 63 58 /// Entry point. If args.length==1, invoke REPL. 64 59 /// Otherwise interpret the argument as a filename. 65 60 void main( string[] args ) 66 61 { 67 - version(unittest) success=true; 68 - 69 62 if( args.length <= 1 ) 70 63 { 71 64 writeln("Welcome to Polemy 0.1.0"); 72 65 for(auto r = new REPL; r.singleInteraction();) {} 73 66 } 74 67 else 75 68 { 76 69 evalFile(args[1]); 77 70 } 78 71 }