expr
expr copied to clipboard
Expression language and expression evaluation for Go
fix #689 for as result not working with int32 int16 and int8
Previously I had `State(State) == '"'"'stalledUP'"'"'"` on github.com/antonmedv/expr v1.12.5 This seems to have been made illegal on a following version (I think v1.13?). I've upgraded to v1.16.9 and it's still...
Thanks for the awesome project! I'm considering using expr embedded within a product, however I'd want to ensure my end users get syntax highlighting within their editor (VSCode support as...
`type Foo interface { Add(a int, b *int) } type FooImpl struct { } func (*FooImpl) Add(a int, b *int) { return } func TestNoInterfaceMethodWithNil(t *testing.T) { var m =...
The matches operation currently only supports string types and uses `regexp.MatchString` under the hood. Is it possible to support `regexp.Match` when the left variable is a byte slice? Currently, the...
Hi I'm trying to reuse compiled Program but it seems unsafe, while the document [here](https://expr-lang.org/docs/getting-started) saying it is. I reuse the program in multiple goroutines and encounter PANIC. Here's the...
consider the precedence of operators and their associative law when printing unary and binary nodes fix error expr print: 1、`(-(1+1)) ** 2` => `-(1 + 1) ** 2` 2、`(2 **...
See issue #637 This contains the changes from pull request #658 as well. If this pull is accepted that one may be closed. Commit https://github.com/expr-lang/expr/commit/3da85278439a5e8ef5dc0d73f321f76742e2cecc introduced repeating the patch phase...