diff options
author | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-03 18:58:07 +0000 |
---|---|---|
committer | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-03 18:58:07 +0000 |
commit | 7db38904537603dabe960f32fa505e27db89e27b (patch) | |
tree | 46ea8abfcc0656a7442363979838f5fa8f9c95a5 /repl.c | |
parent | d81447526cde6fa98dfa792a65f71acb78ef1398 (diff) |
Start adding support for read_term and write_term
Diffstat (limited to 'repl.c')
-rw-r--r-- | repl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ repl(Term *database) int fd = 0; /* Standard input */ while(1){ print("?- "); - Term *query = parse(fd, 1); + Term *query = parse(fd, nil, 1); Binding *bindings = nil; Choicepoint *choicestack = nil; int success; @@ -28,7 +28,7 @@ FindMore: while(bindings){ print(" %S = %S%s", bindings->name, - prettyprint(bindings->value), + prettyprint(bindings->value, 0, 0, 0), bindings->next ? " ,\n" : ""); bindings = bindings->next; } |