andrew-johnson-4 / lambda-mountain

Compact Portable Assembler (5K SLOC)
MIT License
11 stars 0 forks source link

Erroneous unification #523

Open andrew-johnson-4 opened 4 days ago

andrew-johnson-4 commented 4 days ago
(Frg(
   t tt
))

is accepted instead of

(Frg(
   k t tt
))

even though one field is missing

andrew-johnson-4 commented 4 days ago

When constructed in set position

(set x (Abs( lt rt )))

bad stuff gets through.

In let position

(let x (Abs( lt rt )))

errors will be caught normally

andrew-johnson-4 commented 4 days ago

This is pretty big:

(set x (close y))

vs 

(set x y)

doesn't seem to matter.