expr icon indicating copy to clipboard operation
expr copied to clipboard

Expression language and expression evaluation for Go

Results 128 expr issues
Sort by recently updated
recently updated
newest added
trafficstars

Hi @antonmedv , We have a use case where we want to support decimal in `expr` library. I was thinking to use ConstantNode for representing decimal values and overriding operators...

We are generating really long expressions (>1MB) and using conditionals there that can cause more than 64KB jumps. Today, the args of the opcodes are 2 bytes and long jumps...

Not the most elegant approach, but this solves for issue #154 reasonably well.

> Even if a function is defined in a fetcher, expr still used FetchFn and uses reflection unlike pure variables in a struct. FetchFn is guaranteed to use reflection. ```go...

Hello, I am trying to use the operator override feature to add a custom operator (this error is thrown when trying to override an existing operator as well). I've tried...

Would love to have the library able to interpret the power operator (^).

Can we set some variables into env and use them in custom functions?

When passing structs to the `expr.Env()` option, it would be nice to have a way to modify the field extraction behavior to be able to: - extract or map names...

This expression with below function will cause the runtime error because of type - `reflect: Call using int as type int64`. It would be nice if expr can automatically cast...

## Request Don't count newline character '\n' as a terminating string literal when parsing. The newline character within a sentence may be intentional and meaningful for other purposes. With current...