{"id":19866147,"url":"https://github.com/tlux/belp","last_synced_at":"2025-06-12T08:32:33.770Z","repository":{"id":57479562,"uuid":"260241662","full_name":"tlux/belp","owner":"tlux","description":"A simple Boolean Expression Lexer and Parser","archived":false,"fork":false,"pushed_at":"2024-03-25T10:34:18.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-25T13:02:18.692Z","etag":null,"topics":["boolean-algebra","boolean-expression","elixir","expression-evaluator","hex-package","lexer-parser"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tlux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-04-30T14:58:15.000Z","updated_at":"2024-03-25T09:32:50.000Z","dependencies_parsed_at":"2024-11-12T15:32:11.587Z","dependency_job_id":null,"html_url":"https://github.com/tlux/belp","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"70848907143e75e00479d4c0af9060820b7f4617"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tlux/belp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlux%2Fbelp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlux%2Fbelp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlux%2Fbelp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlux%2Fbelp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tlux","download_url":"https://codeload.github.com/tlux/belp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlux%2Fbelp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259429708,"owners_count":22856110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-algebra","boolean-expression","elixir","expression-evaluator","hex-package","lexer-parser"],"created_at":"2024-11-12T15:25:06.361Z","updated_at":"2025-06-12T08:32:33.730Z","avatar_url":"https://github.com/tlux.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Belp\n\n[![Build](https://github.com/tlux/belp/actions/workflows/elixir.yml/badge.svg)](https://github.com/tlux/belp/actions/workflows/elixir.yml)\n[![Coverage Status](https://coveralls.io/repos/github/tlux/belp/badge.svg?branch=main)](https://coveralls.io/github/tlux/belp?branch=main)\n[![Module Version](https://img.shields.io/hexpm/v/belp.svg)](https://hex.pm/packages/belp)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/belp/)\n[![License](https://img.shields.io/hexpm/l/belp.svg)](https://github.com/tlux/belp/blob/main/LICENSE.md)\n[![Last Updated](https://img.shields.io/github/last-commit/tlux/belp.svg)](https://github.com/tlux/belp/commits/main)\n\nA simple *B*oolean *E*xpression *L*exer and *P*arser written in Elixir.\n\n## Installation\n\nThe package can be installed by adding `belp` to your list of dependencies in\n`mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:belp, \"~\u003e 1.0\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\niex\u003e Belp.eval!(\n...\u003e   \"(foo or bar) and not baz\",\n...\u003e   %{\"foo\" =\u003e false, \"bar\" =\u003e true, \"baz\" =\u003e false}\n...\u003e )\ntrue\n```\n\n```elixir\niex\u003e Belp.eval!(\"invalid expression\")\n** (Belp.SyntaxError) Syntax error near token \"expression\" on line 1\n```\n\nSee [HexDocs](https://hexdocs.pm/belp) for the full API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlux%2Fbelp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftlux%2Fbelp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlux%2Fbelp/lists"}