+ made it so that you can use the mnemonics
authorJohn Beppu <beppu@lbox.org>
Wed, 21 Jun 2000 18:00:46 +0000 (18:00 -0000)
committerJohn Beppu <beppu@lbox.org>
Wed, 21 Jun 2000 18:00:46 +0000 (18:00 -0000)
  (add, sub, mul, div) in lieu of (+, -, *, /)

math.c

diff --git a/math.c b/math.c
index eb8f331..15a826c 100644 (file)
--- 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)