lantiga / ki

lisp + mori, sweet.js
ki-lang.org
MIT License
478 stars 29 forks source link

Incorrect parsing of negative literals #18

Open lantiga opened 9 years ago

lantiga commented 9 years ago

Negative numeric literals are not parsed correctly. E.g. [-1 -2] gets parsed as vector(-1,2), (def a -1) produces def(1).

Workaround for now is enclose negative numeric literals in a unary minus (-1) form.