lantiga / ki

lisp + mori, sweet.js

Home Page:ki-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect parsing of negative literals

lantiga opened this issue · comments

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.