OSDN Git Service

Minor cleanup.
authorsforman <sforman@hushmail.com>
Sat, 29 Jul 2023 15:57:58 +0000 (08:57 -0700)
committersforman <sforman@hushmail.com>
Sat, 29 Jul 2023 15:57:58 +0000 (08:57 -0700)
README.md
implementations/Elm/src/Joy.elm

index 9065614..2bcad62 100644 (file)
--- a/README.md
+++ b/README.md
@@ -261,8 +261,10 @@ dialect of Joy are defined in terms of these:
 
     < > >= <= != <> = 
 
+    and or xor (These are the bitwise ops.)
     lshift rshift
 
+    /\ \/ _\/_ (These are the logical ops.  Booleans)
 
 
 --------------------------------------------------
index 7486224..147f791 100644 (file)
@@ -184,9 +184,9 @@ text_to_expression text = parse (tokenize text)
 
 doit text =
     case text_to_expression text of
-        Err msg -> Err msg
         Ok ast ->
             case joy [] ast of
-                Err msg -> Err msg
                 Ok expr -> Ok (joyExpressionToString expr)
+                Err msg -> Err msg
+        Err msg -> Err msg