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 48 writef(">> ", lineno);
49 49 string line = readln();
50 50 if( line.startsWith("exit") || line.startsWith("quit") )
51 51 return false;
52 52 try {
53 53 if( tryRun(line) )
54 + {
55 + // for debugging.
56 + //try {
57 + // writeln(tableToAST("@v", cast(Table)lastVal));
58 + //} catch(Throwable e) {
59 + // writeln(e);
60 + //}
54 61 writeln(lastVal);
62 + }
55 63 } catch(Throwable e) {
56 64 writeln(e);
57 65 }
58 66 return true;
59 67 }
60 68 }
61 69