lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Cassowary is "an incremental constraint solving toolkit that efficiently 
> solves systems of linear equalities and inequalities."

Nice! Thanks for sharing.

You'll probably benefit from allowing Cassowary to be fed expressions in
ordinary mathematical notation "x < y", "y = x + 3", etc. Unfortunately,
metamethods cannot do the complete job, but minimal parsing, such as
splitting at "<" and "=", combined with metamethods can probably do the
job and make using your module more enjoyable. Alternatively, you might
use a preprocessor to generate Lua code or feed Cassowary directly.