+ made it so that you can use the mnemonics

(add, sub, mul, div) in lieu of (+, -, *, /)
This commit is contained in:
John Beppu 2000-06-21 18:00:46 +00:00
parent e63ad9ba06
commit c03525475e

16
math.c
View File

@ -92,15 +92,19 @@ struct op {
};
static const struct op operators[] = {
{"+", add},
{"-", sub},
{"*", mul},
{"/", divide},
{"+", add},
{"add", add},
{"-", sub},
{"sub", sub},
{"*", mul},
{"mul", mul},
{"/", divide},
{"div", divide},
{"and", and},
{"or", or},
{"or", or},
{"not", not},
{"eor", eor},
{0, 0}
{0, 0}
};
static void stack_machine(const char *argument)