aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/math.c b/math.c
index eb8f331fd..15a826ce4 100644
--- a/math.c
+++ b/math.c
@@ -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)