Skip to content

Commit

Permalink
rewriting readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhibas committed Feb 23, 2024
1 parent 8a7c087 commit 9b3cb1a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Boolean expression parser in Nom for feature flagging solution
# Flagfile

Same as pest parser written with pest.rs here https://github.com/dzhibas/bool_expr_parser but parsed with NOM
it's developer friendly feature flagging solution where you define all your flags in Flagfile in this format: [Flagfile.example](Flagfile.example)

Lets say you have activation rule likes this:
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

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
```
country == NL and created > 2024-02-15 and userId not in (122133, 122132323, 2323423)
```
Expand All @@ -16,7 +17,3 @@ dbg!(flag_value);
```

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

### Vision for Flagfile example

Please take a look at format and supported features in [Flagfile.example](Flagfile.example)

0 comments on commit 9b3cb1a

Please sign in to comment.