From ad9d6a199db7c28f8b20f131dfb55a26e0e251de Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sun, 23 Mar 2025 21:11:13 +0300 Subject: Again... --- src/instruction.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/instruction.c (limited to 'src/instruction.c') diff --git a/src/instruction.c b/src/instruction.c deleted file mode 100644 index 4189dd1..0000000 --- a/src/instruction.c +++ /dev/null @@ -1,40 +0,0 @@ -#include "instruction.h" -#include "instructions.h" - -#include -#include - -#include "readchar.h" -#include "3cl.h" - - -struct CCLFrame *ccl_instruction(struct CCL *ccl, struct CCLFrame *frame) -{ - CCLInstruction instruction; - char chr = ccl_readchar(ccl, frame, CCL_RC_CCL_INSTR); - - if (chr == '\0') - { - ccl->stopped = true; - return INST(nop)(ccl, frame); - } - -#define ISSW(NAME) instruction = INST(NAME); break - switch (chr) - { - case '\n': /* FALLTHROUGH */ - case ' ' : /* FALLTHROUGH */ - case '\t': ISSW(nop); - case '^' : ISSW(pushzero); - case '+' : ISSW(increment); - case '-' : ISSW(decrement); - case '*' : ISSW(add); - case '~' : ISSW(subtract); - case '%' : ISSW(reverse); - case '=' : ISSW(assign); - default : ISSW(invalid); - } -#undef INSW - return instruction(ccl, frame); - puts("aboba"); -} -- cgit 1.4.1