diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-04 16:19:29 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-04 16:19:29 +0800 |
commit | 418f6ed5dd00e296b87b202a99753632fc593382 (patch) | |
tree | 7e372342b3fa116c7c695ac8f77c2b994dc1bd44 /main.cpp | |
parent | 65f17438de5983ca010e10b4b24c5da65756a9b5 (diff) |
added more error report
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -23,11 +23,12 @@ int main() { while (1) { - Cons *tree = ast->absorb(tk); - if (!tree) break; - //tree_print(tree); + printf("Sonsi> "); try { + Cons *tree = ast->absorb(tk); + if (!tree) break; + //tree_print(tree); printf("%s\n", eval->run_expr(tree)->ext_repr().c_str()); } catch (GeneralError &e) |