diff options
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | liblali.c | 4 |
2 files changed, 3 insertions, 4 deletions
@@ -56,13 +56,12 @@ numbers) or by `-` (for negative numbers). There is support for the five arithmetic operations `+`, `-`, `*`, `/`, `%` (with `%` the operands are automatically converted to integer) as well as the relational -operations `!` (different), `<`, `>`: +operations `<`, `>`: (- +5) ; -5 (- +5 +3.2 +.6) ; +1.2 (< +2 +4 +6.8) ; t (> +4 +8) ; f - (! +4 +4) ; f #### Random number operation @@ -1027,7 +1027,7 @@ DEFINE_PRIMITIVE_ARITHMETIC(primitiveRemainder, %, "+1", atoi, int , "%d" , "+%d } \ } -DEFINE_PRIMITIVE_RELATIONAL(primitiveDifferent, !=, false) +/* DEFINE_PRIMITIVE_RELATIONAL(primitiveDifferent, !=, false) */ /* DEFINE_PRIMITIVE_RELATIONAL(primitiveEqual, ==, true) */ DEFINE_PRIMITIVE_RELATIONAL(primitiveLess, < , true) /* DEFINE_PRIMITIVE_RELATIONAL(primitiveLessEqual, <=, true) */ @@ -1101,7 +1101,7 @@ Primitive primitives[] = { { "/", 1, -1, primitiveDivide }, { "%", 1, -1, primitiveRemainder }, /* { "=", 1, -1, primitiveEqual }, */ - { "!", 1, -1, primitiveDifferent }, + /* { "!", 1, -1, primitiveDifferent }, */ { "<", 1, -1, primitiveLess }, /* { "<=", 1, -1, primitiveLessEqual }, */ { ">", 1, -1, primitiveGreater }, |