You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Boolean expression parser in Nom for feature flagging solution
1
+
# Flagfile
2
2
3
-
Same as pest parser written with pest.rs here https://github.com/dzhibas/bool_expr_parser but parsed with NOM
3
+
it's developer friendly feature flagging solution where you define all your flags in Flagfile in this format: [Flagfile.example](Flagfile.example)
4
4
5
-
Lets say you have activation rule likes this:
5
+
its boolean expression parser library which was initially written in pest.rs (https://github.com/dzhibas/bool_expr_parser) and later rewrote everything in Nom rust lib
6
6
7
+
Feature rules can be describe in a expresions similar to all developers and DevOps and does not need any intermediate json format to express these
7
8
```
8
9
country == NL and created > 2024-02-15 and userId not in (122133, 122132323, 2323423)
9
10
```
@@ -16,7 +17,3 @@ dbg!(flag_value);
16
17
```
17
18
18
19
eventually this lib compiles into wasm and used in UI to validate and parse rules, and with FFI exported into other languages to parse and evaluate rules
19
-
20
-
### Vision for Flagfile example
21
-
22
-
Please take a look at format and supported features in [Flagfile.example](Flagfile.example)
0 commit comments