evalexpr
evalexpr copied to clipboard
A powerful expression evaluation crate 🦀.
Looking for support for custom IntType, FloatType within an evaluation. In particular, was hoping to us evalexpr with [decimal](https://crates.io/crates/decimal). It would be better to be able to provide these types...
I want to get value at the index from a tuple. e.g. `eval("(1,2,3,4).4") // 4 `
Is it possible to insert logic into expressions? `expr = "true ? 1 : 0"` or `expr = "if true { 1 } else { 0 }"`
We are trying to use evalexpr, but a small missing detail is preventing us from using it effectively. The way the contract of `Context` is defined, `get_value()` is forced to...
Having a chain like `a=5,5;a=5,5;a=5,5;` should parse correctly, since the precedence of semicolon is lower. But it does not, and generates a deep tree instead.
Add a context type that does not enforce variables to be typed
This crate soon provides a premade context, and if more are added in the future, the question arises of how a user would build a set of contexts. Ideally there...
This would remove the string lookup overhead to call a function when evaluating.
Root node is a little bit of bloat inside expression trees. Can parsing be realized without it?