lama_byterun/byterun/include/parser.h

40 lines
2.2 KiB
C
Raw Permalink Normal View History

#pragma once
#include <stdio.h>
2024-10-31 21:08:48 +03:00
#include "utils.h"
2024-11-14 14:02:36 +03:00
#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, ||)
#define FORALL_BINOP_FUNC(DEF) \
DEF(Ls__Infix_3333) \
DEF(Ls__Infix_3838) \
DEF(Ls__Infix_6161) \
DEF(Ls__Infix_3361) \
DEF(Ls__Infix_6061) \
DEF(Ls__Infix_60) \
DEF(Ls__Infix_6261) \
DEF(Ls__Infix_62) \
DEF(Ls__Infix_43) \
DEF(Ls__Infix_45) \
DEF(Ls__Infix_42) \
DEF(Ls__Infix_47) \
DEF(Ls__Infix_37)
2024-12-15 16:19:54 +03:00
const char *read_cmd(char *ip, const Bytefile *bf);
2024-11-12 00:10:02 +03:00
2024-12-15 16:19:54 +03:00
// Bytefile *read_file(const char *fname);