Differences From Artifact [b6f89f38f0a1626d]:
- File
main.d
- 2010-11-13 12:16:47 - part of checkin [5afe8e3f26] on branch trunk - Memoization on non "@v" layer. Now simplest metalevel computation works!! Also, added -l option. (user: kinaba) [annotate]
To Artifact [d5ef45952651bda8]:
- File
main.d
- 2010-11-20 12:57:15 - part of checkin [3f6f41b558] on branch trunk - ast - table conversion (NOT AT ALL TESTED) (user: kinaba) [annotate]
47 { 47 {
48 writef(">> ", lineno); 48 writef(">> ", lineno);
49 string line = readln(); 49 string line = readln();
50 if( line.startsWith("exit") || line.startsWith("quit") ) 50 if( line.startsWith("exit") || line.startsWith("quit") )
51 return false; 51 return false;
52 try { 52 try {
53 if( tryRun(line) ) 53 if( tryRun(line) )
> 54 {
> 55 // for debugging.
> 56 //try {
> 57 // writeln(tableToAST("@v", cast(Table)last
> 58 //} catch(Throwable e) {
> 59 // writeln(e);
> 60 //}
54 writeln(lastVal); 61 writeln(lastVal);
> 62 }
55 } catch(Throwable e) { 63 } catch(Throwable e) {
56 writeln(e); 64 writeln(e);
57 } 65 }
58 return true; 66 return true;
59 } 67 }
60 } 68 }
61 69