aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-04 16:19:29 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-04 16:19:29 +0800
commit418f6ed5dd00e296b87b202a99753632fc593382 (patch)
tree7e372342b3fa116c7c695ac8f77c2b994dc1bd44 /main.cpp
parent65f17438de5983ca010e10b4b24c5da65756a9b5 (diff)
added more error report
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index 31d7943..e8fe418 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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)