{"id":19861207,"url":"https://github.com/dzhibas/bool_expr_parser","last_synced_at":"2026-06-04T21:31:23.282Z","repository":{"id":57307132,"uuid":"477349883","full_name":"dzhibas/bool_expr_parser","owner":"dzhibas","description":"Boolean expresion parser and evaluation function for feature flagging - flipper","archived":false,"fork":false,"pushed_at":"2023-11-08T20:40:57.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T03:57:56.219Z","etag":null,"topics":["boolean-expression","parser","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dzhibas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-03T13:29:15.000Z","updated_at":"2024-04-06T05:33:25.000Z","dependencies_parsed_at":"2025-01-11T14:46:34.465Z","dependency_job_id":"cd4b0dc4-d25a-4efe-8680-5a2e6922e938","html_url":"https://github.com/dzhibas/bool_expr_parser","commit_stats":{"total_commits":32,"total_committers":2,"mean_commits":16.0,"dds":0.40625,"last_synced_commit":"64179d21dbd41bfea7d66c9d81e5c277a415dda3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dzhibas/bool_expr_parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzhibas%2Fbool_expr_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzhibas%2Fbool_expr_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzhibas%2Fbool_expr_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzhibas%2Fbool_expr_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dzhibas","download_url":"https://codeload.github.com/dzhibas/bool_expr_parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzhibas%2Fbool_expr_parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33920251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boolean-expression","parser","rust"],"created_at":"2024-11-12T15:08:18.163Z","updated_at":"2026-06-04T21:31:23.234Z","avatar_url":"https://github.com/dzhibas.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bool Expr Parser lib\n\nBoolean expresion parser and evaluation function for feature flagging - flipper\n\nIt parses expression and given input hashmap evaluates and returns true/false\n\nExample of complex expression you can parse and evaluate:\n\n```\n(countryCode=NL or countryCode=DE) \n    AND uid in (121321,2312312,231231) \n    and role in (Admin, \"Super admin\")\n    and (\n        uid not in ( ca3ed35c-114f-488d-82b7-7c4d1bd5cbcd,  b83f48af-ecb6-4b50-9d5e-b690db2a332b ) \n        or uid \u003c= 0\n    ) \n    and !(street_name='Random street 1' and countryCode=NL)\n```\n\ngiven a input hashmap of\n```\n    let map = HashMap::from([\n        (\"countryCode\", \"DE\"),\n        (\"uid\", \"2312312\"),\n        (\"role\", \"Super admin\"),\n        (\"street_name\", \"Random street 2\"),\n    ]);\n```\n\nresult would be `true`\n\n```\nassert_eq!(\n        eval(\n            BoolExprParser::parse(Rule::main, \u0026expression)\n                .expect(\"Parse error\"),\n            \u0026map\n        ),\n        true\n    );\n```\n\nPlease see test in src/test.rs test_in_readme_documentation()","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzhibas%2Fbool_expr_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdzhibas%2Fbool_expr_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzhibas%2Fbool_expr_parser/lists"}