Beginning work on infix operators in mexprs.

This commit is contained in:
Simon Brooke 2023-03-25 16:25:56 +00:00
parent 434276ecea
commit ce7fe8f3ef
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987
6 changed files with 152 additions and 29 deletions

View file

@ -76,3 +76,9 @@
Exception
#"Cannot parse meta expressions in strict mode"
(gsp "label[ff;λ[[x];[atom[x]->x; T->ff[car[x]]]]]"))))))
(deftest assignment-tests
(testing "Function assignment"
(let [expected "(SET (QUOTE FF) (LAMBDA (X) (COND ((ATOM X) X) (T (FF (CAR X))))))"
actual (gsp "ff[x]=[atom[x] -> x; T -> ff[car[x]]]")]
(is (= actual expected)))))