diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-09 22:03:36 +0000 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-09 22:03:36 +0000 |
commit | 325cfd6354dcccaa095767e0419760a3f9462fed (patch) | |
tree | 00932f332530feaf57c1c17758fb3a7f30fe8522 /main.c | |
parent | 1ef3119fe613823a2145126c58948361ca7d3cd8 (diff) |
Add basic code for parser/evaluator. Can do simple stranding
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -24,7 +24,7 @@ main(void) else print("ERROR: %S\n", errormsg); }else{ - ppdatum(*result); + print("%S\n", ppdatum(*result)); free(result); } } @@ -51,7 +51,6 @@ evalline(Rune *line) { int ntoks; Datum *tokens = lexline(line, &ntoks); - print("Evaluating line (n=%d): %S\n", ntoks, ppdatums(tokens, ntoks)); Datum *result = eval(tokens, &ntoks); if(ntoks == 1) return result; |