gval icon indicating copy to clipboard operation
gval copied to clipboard

Expression evaluation in golang

Results 28 gval issues
Sort by recently updated
recently updated
newest added

Use panic recovery inside the eval goroutines, fix #79 .

It uses reflect value for interface when an argument is resolved as nil.

Example: expression: `a + b > 6` args: {"a":3,"b":4} result: 3 + 4 > 6 Because i need to show the user the calculation process of the expression rather than...

I have the case that one of my identifiers contains a `-`, like `type-id`. The parser fails because `-` is not an allowed rune in an identifier. Example: ```go func...

Is it be possible to configure a language so that variable names takes precedence over functions? Use case: for a system that stores expressions, allow adding new functions to the...

I use this project in my job and solve a lot problems. Really appreciate for it. **But i found there are some scences that i need to get the metadata...

I have expression `vtg_ground_speed_unit > 0 ? vtg_ground_speed_knots : vtg_ground_speed_kph`. These variables (`vtg_ground_speed_unit`, `vtg_ground_speed_knots`, `vtg_ground_speed_kph`) can only be from fixed list (coming from configuration file). So it would be nice...

functions inside expressions are evaluated in coroutine and on panic are not recovered thus crashing whole application. I think there should be somekind of recover as when coroutine ends with...

first of all, thanks for the nice project solves my problem a lot. here is one feature request after using this module in more scenarios of the projects, i'd like...