Releases: ganigeorgiev/fexpr
Releases · ganigeorgiev/fexpr
v0.5.0 Release
- Added support for
functiontokens.
Function tokens are similar to identifiers but in addition accept a list of arguments enclosed in parenthesis(). The function arguments must be separated by comma (a single trailing comma is also allowed) and each argument can be an identifier, quoted text, number or another nested function (at the moment restricted up to 2 nested).
Example:test(),test(a.b, 123, "abc"),@a.b.c:test(true),a(b(c(1, 2))).
v0.4.1 Release
- Preserve the original text literal quotes when in parenthesis (pocketbase#5017).
v0.4.0 Release
- Added single line comment support:
// test. Similar to whitespaces, comments are ignored byfexpr.Parse(). - Added global
fexpr.ErrEmptyvariable that can be used to distinguish empty expression parse error (eg. in case there are only whitespaces or comments).
v0.3.0 Release
- Added
:as valid identifier character (could be used for modifers, eg.name:lower).
v0.2.0 Release
- Detect negative numbers as
TokenNumber - Added array/any/"at least one" operators:
?= Array/Any equal operator (eg. `a?=b`) ?!= Array/Any NOT Equal operator (eg. `a?!=b`) ?> Array/Any Greater than operator (eg. `a?>b`) ?>= Array/Any Greater than or equal operator (eg. `a?>=b`) ?< Array/Any Less than or equal operator (eg. `a?<b`) ?<= Array/Any Less than or equal operator (eg. `a?<=b`) ?~ Array/Any Like/Contains operator (eg. `a?~b`) ?!~ Array/Any NOT Like/Contains operator (eg. `a?!~b`)
v0.1.1 Release
Fixed typos and some lint suggestions.
v0.1.0 Release
updated module name