From 4e26b8c0a1b7fc843741105d57da863997e7284b Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 26 May 2023 14:03:17 -0400 Subject: refactor: pop and peek are no longer special cases; remove dump command --- forth.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'forth.c') diff --git a/forth.c b/forth.c index e9f7637..0b4a99f 100644 --- a/forth.c +++ b/forth.c @@ -27,13 +27,6 @@ char isnumber(char *text) { void eval(stack* s, int len, char* line); void exec(stack *s, char *word) { - if (!strcmp(word, "pop") || !strcmp(word, ".")) { - printf("%d\n", pop(s)); - return; - } else if (!strcmp(word, "peek")) { - printf("%d\n", peek(s)); - return; - } wordop* op = getop(word); if (op) { if (op->isscript) { -- cgit v1.2.3