mumble

A Lisp written in C, following the *Build Your Own Lisp* book
Log | Files | Refs | README

commit e9a6558d4bf594d6de5c9c13062b9d7d73f4517f
parent 2ffb9e7d82bbda36b0b2c8b4856001a9b453ef6e
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Sun, 30 Apr 2023 00:44:26 -0400

tweak: change mumble answer

Diffstat:
Mmumble | 0
Msrc/mumble.c | 6+++++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/mumble b/mumble Binary files differ. diff --git a/src/mumble.c b/src/mumble.c @@ -25,6 +25,7 @@ int main(int argc, char** argv) lispy : /^/ <operator> <expr>+ /$/ ; \ ", Number, Operator, Expr, Lispy); + int loop = 1; while (loop) { char* input = readline("mumble> "); @@ -33,12 +34,15 @@ int main(int argc, char** argv) loop = 0; puts(""); } else { - printf("You said: %s\n", input); + printf("Did you say \"%s\"?\n", input); add_history(input); // can't add if input is NULL } free(input); } + /* Undefine and Delete our Parsers */ + mpc_cleanup(4, Number, Operator, Expr, Lispy); + return 0; }