This commit is contained in:
ProgramSnail 2024-11-14 14:02:36 +03:00
parent eb6267defe
commit b198e11416
2 changed files with 43 additions and 49 deletions

View file

@ -4,6 +4,21 @@
#include "utils.h"
#define FORALL_BINOP(DEF) \
DEF(CMD_BINOP_ADD, +) \
DEF(CMD_BINOP_SUB, -) \
DEF(CMD_BINOP_MULT, *) \
DEF(CMD_BINOP_DIV, /) \
DEF(CMD_BINOP_MOD, %) \
DEF(CMD_BINOP_LEQ, <) \
DEF(CMD_BINOP_LT, <=) \
DEF(CMD_BINOP_GT, >) \
DEF(CMD_BINOP_GEQ, >=) \
DEF(CMD_BINOP_EQ, ==) \
DEF(CMD_BINOP_NEQ, !=) \
DEF(CMD_BINOP_AND, &&) \
DEF(CMD_BINOP_OR, ||)
const char *read_cmd(char *ip);
bytefile *read_file(char *fname);