Differences From Artifact [1a40d715cf0caee4]:
- File
polemy/eval.d
- 2010-11-09 05:19:20 - part of checkin [8de5b49cdf] on branch trunk - split tricks module into a separate package. (user: kinaba) [annotate]
To Artifact [c3d65954914654a5]:
- File
polemy/eval.d
- 2010-11-09 06:02:32 - part of checkin [7de80acfb8] on branch trunk - Added ultra tenuki REPL (user: kinaba) [annotate]
86 /// Entry point of this module 86 /// Entry point of this module
87 87
88 Tuple!(Value,"val",Table,"ctx") evalString(S,T...)(S str, T fn_ln_cn) 88 Tuple!(Value,"val",Table,"ctx") evalString(S,T...)(S str, T fn_ln_cn)
89 { 89 {
90 return eval( polemy.parse.parseString(str, fn_ln_cn) ); 90 return eval( polemy.parse.parseString(str, fn_ln_cn) );
91 } 91 }
92 92
93 Tuple!(Value,"val",Table,"ctx") evalFile(S, T...)(S filenae, T ln_cn) | 93 Tuple!(Value,"val",Table,"ctx") evalFile(S, T...)(S filename, T ln_cn)
94 { 94 {
95 return eval( polemy.parse.parseFile(filename, ln_cn) ); 95 return eval( polemy.parse.parseFile(filename, ln_cn) );
96 } 96 }
97 97
98 Tuple!(Value,"val",Table,"ctx") eval(AST e) 98 Tuple!(Value,"val",Table,"ctx") eval(AST e)
99 { 99 {
100 Table ctx = createGlobalContext(); 100 Table ctx = createGlobalContext();