kiedtl / finwe

A concatenative language for the Uxn VM with full compiler-enforced stack safety.
MIT License
35 stars 0 forks source link

Invalid syntax accepted #17

Open kiedtl opened 1 month ago

kiedtl commented 1 month ago

If the first element in a list is a list, that list is recursively parsed while the rest of the elements in the original list is ignored.

(((word main [])) tsdflsdf)

Not sure why this behaviour was there in the first place (in what cases would a list as the first element in a list be valid?)

Fix should be to simply only allow a keyword as first element in list. I'll have to test that nothing else depends on allowing a list to be first element however.