{"id":15039822,"url":"https://github.com/gsscoder/exprengine","last_synced_at":"2025-10-13T00:44:33.743Z","repository":{"id":6109141,"uuid":"7336791","full_name":"gsscoder/exprengine","owner":"gsscoder","description":".NET expression evaluator engine","archived":false,"fork":false,"pushed_at":"2020-02-22T19:58:24.000Z","size":3680,"stargazers_count":20,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-05T14:49:51.702Z","etag":null,"topics":["api","csharp","dot-net","dotnet-core","evaluator","expression","library"],"latest_commit_sha":null,"homepage":"","language":"C#","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/gsscoder.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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":"2012-12-27T06:27:37.000Z","updated_at":"2025-08-04T03:45:59.000Z","dependencies_parsed_at":"2022-08-30T18:12:00.097Z","dependency_job_id":null,"html_url":"https://github.com/gsscoder/exprengine","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gsscoder/exprengine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsscoder%2Fexprengine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsscoder%2Fexprengine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsscoder%2Fexprengine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsscoder%2Fexprengine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsscoder","download_url":"https://codeload.github.com/gsscoder/exprengine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsscoder%2Fexprengine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013635,"owners_count":26085298,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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":["api","csharp","dot-net","dotnet-core","evaluator","expression","library"],"created_at":"2024-09-24T20:43:52.662Z","updated_at":"2025-10-13T00:44:33.713Z","avatar_url":"https://github.com/gsscoder.png","language":"C#","readme":"# Expression Engine\n\nThis project is a simple mathematical expression parser written in C#. It's the refactoring of a previous project and uses an AST-evaluation algorithm. You can use built-in or bind your functions and variables to global scope.\n\n## Documentation\n\nDocumentation is available in the project [Wiki](https://github.com/gsscoder/exprengine/wiki).\n\n## Targets\n\n- .NET Standard 2.0\n- .NET Framework 4.0, 4.5, 4.6.1\n\n## At a glance:\n\n```csharp\nvar contex = new Context()\n  .SetVariable(\"G\", 6.67428D)\n  .SetVariable(\"earth_mass\", Evaluate.As\u003cdouble\u003e(\"5.97219 * pow(10,24)\")) // 5.97219E+24 kg\n  .SetVariable(\"lunar_mass\", Evaluate.As\u003cdouble\u003e(\"7.34767309 * pow(10,22)\")) // 7.34767309E+22 kg\n  .SetVariable(\"perigee_dist\", 356700000D) // moon-earth distance at perigee in m\n  .SetFunction(\"calc_force\", (object[] args) =\u003e ((double) args[0] * (double) args[1]) / Math.Pow((double) args[2], 2));\nvar result = contex.EvaluateAs\u003cdouble\u003e(\"G * calc_force(earth_mass, lunar_mass, perigee_dist)\"); // 2.3018745174107073E+31\nbool isGCorrect = contex.EvaluateAs\u003cbool\u003e(\"G == 6.67428\");\n```\n\n## REPL\n\n```sh\n$ dotnet build -c release\n...\n$ ./artifacts/ExpressionEngine.REPL/Release/netcoreapp3.1/xeval --help\nxeval 1.0.0\nCopyright © Giacomo Stelluti Scala, 2012-2020\nThis is free software. You may redistribute copies of it under the terms of\nthe MIT License \u003chttp://www.opensource.org/licenses/mit-license.php\u003e.\nUsage: xeval [EXPRESSION]\n       xeval --interactive\n       xeval -f [FILENAME]\n       cmdx | xeval\n\n  -f, --filename       Input text file to be evaluated.\n\n  -i, --interactive    Run in interactive mode.\n\n  -q, --quiet          Print only the evaluation results.\n\n  -v, --version        Print version information and exit.\n\n  --help               Display this help screen.\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsscoder%2Fexprengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsscoder%2Fexprengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsscoder%2Fexprengine/lists"}