Commit graph

1 commit

Author SHA1 Message Date
dodde
e02d48c05d Added expressions.
Added expressions with var substitution.
Using std::expected to handle errors.

Usage example:
auto val = Hyprutils::Expression::eval("5 + 5 * (2 / w)", {{"w", 10}});
if(val)
 doThingWithValue(*val);
if(!val)
 std::cout << val.error();
2025-10-07 17:39:35 +02:00