{"id":16618564,"url":"https://github.com/brentp/kexpr-nim","last_synced_at":"2025-10-29T19:31:47.179Z","repository":{"id":56451666,"uuid":"105818561","full_name":"brentp/kexpr-nim","owner":"brentp","description":"nim wrapper for Heng Li's kexpr math expression evaluator library","archived":false,"fork":false,"pushed_at":"2020-11-06T15:02:15.000Z","size":30,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T04:41:12.790Z","etag":null,"topics":["evaluator","math","math-expressions","nim-lang"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brentp.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}},"created_at":"2017-10-04T21:08:21.000Z","updated_at":"2024-09-12T13:19:33.000Z","dependencies_parsed_at":"2022-08-15T19:00:50.252Z","dependency_job_id":null,"html_url":"https://github.com/brentp/kexpr-nim","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brentp%2Fkexpr-nim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brentp%2Fkexpr-nim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brentp%2Fkexpr-nim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brentp%2Fkexpr-nim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brentp","download_url":"https://codeload.github.com/brentp/kexpr-nim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238882462,"owners_count":19546521,"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":["evaluator","math","math-expressions","nim-lang"],"created_at":"2024-10-12T02:20:41.583Z","updated_at":"2025-10-29T19:31:41.909Z","avatar_url":"https://github.com/brentp.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kexpr-nim\nnim wrapper for Heng Li's kexpr math expression library\n\n[![badge](https://img.shields.io/badge/docs-latest-blue.svg)](https://brentp.github.io/kexpr-nim/)\n\n```Nim\nvar e = expression(\"5*6+x \u003e 20\")\ne[\"x\"] = 10\necho e.int\ne[\"x\"] = 20\necho e.int64\nassert e.error() == 0\n\ne = expression(\"(sample1 \u003e 20 \u0026 sample2 \u003e 10 \u0026 sample3 \u003c 40\")\n# missing paren\nassert e.error() != 0\ne.clear()\n\ne = expression(\"(sample1 \u003e 20) \u0026 (sample2 \u003e 10) \u0026 (sample3 \u003c 40)\")\ne[\"sample1\"] = 21; e[\"sample2\"] = 65; e[\"sample3\"] = 20\necho e.int # 1\ne[\"sample1\"] = 0\necho e.int # 0\nassert e.error() == 0\necho e.float # 0.0\n```\n\n## installation\n\nIf you have nimble installed you can do:\n\n```\nnimble install kexpr\n```\n\n[![nimble](https://raw.githubusercontent.com/yglukhov/nimble-tag/master/nimble.png)](https://github.com/nim-lang/nimble)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrentp%2Fkexpr-nim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrentp%2Fkexpr-nim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrentp%2Fkexpr-nim/lists"}