Beginning work on infix operators in mexprs.
This commit is contained in:
parent
434276ecea
commit
ce7fe8f3ef
6 changed files with 152 additions and 29 deletions
|
|
@ -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)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue