mirror of
https://github.com/sheumann/hush.git
synced 2025-02-25 01:29:14 +00:00
+ made it so that you can use the mnemonics
(add, sub, mul, div) in lieu of (+, -, *, /)
This commit is contained in:
parent
e63ad9ba06
commit
c03525475e
16
math.c
16
math.c
@ -92,15 +92,19 @@ struct op {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const struct op operators[] = {
|
static const struct op operators[] = {
|
||||||
{"+", add},
|
{"+", add},
|
||||||
{"-", sub},
|
{"add", add},
|
||||||
{"*", mul},
|
{"-", sub},
|
||||||
{"/", divide},
|
{"sub", sub},
|
||||||
|
{"*", mul},
|
||||||
|
{"mul", mul},
|
||||||
|
{"/", divide},
|
||||||
|
{"div", divide},
|
||||||
{"and", and},
|
{"and", and},
|
||||||
{"or", or},
|
{"or", or},
|
||||||
{"not", not},
|
{"not", not},
|
||||||
{"eor", eor},
|
{"eor", eor},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
static void stack_machine(const char *argument)
|
static void stack_machine(const char *argument)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user