{"id":18725066,"url":"https://github.com/kondrak/tinyexpr-rs","last_synced_at":"2025-04-12T15:50:46.468Z","repository":{"id":57669884,"uuid":"67297159","full_name":"kondrak/tinyexpr-rs","owner":"kondrak","description":"Tiny recursive descent expression parser, compiler, and evaluation engine for math expressions.","archived":false,"fork":false,"pushed_at":"2023-07-11T21:31:03.000Z","size":32,"stargazers_count":11,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T10:21:12.603Z","etag":null,"topics":["evaluation-engine","math-expressions","rust","tinyexpr-rs"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/kondrak.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":"2016-09-03T15:26:43.000Z","updated_at":"2024-04-30T08:36:51.000Z","dependencies_parsed_at":"2022-09-26T20:40:39.129Z","dependency_job_id":null,"html_url":"https://github.com/kondrak/tinyexpr-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kondrak%2Ftinyexpr-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kondrak%2Ftinyexpr-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kondrak%2Ftinyexpr-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kondrak%2Ftinyexpr-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kondrak","download_url":"https://codeload.github.com/kondrak/tinyexpr-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248591901,"owners_count":21130145,"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":["evaluation-engine","math-expressions","rust","tinyexpr-rs"],"created_at":"2024-11-07T14:09:00.468Z","updated_at":"2025-04-12T15:50:46.448Z","avatar_url":"https://github.com/kondrak.png","language":"Rust","readme":"# tinyexpr-rs\n\n[![Crates.io](https://img.shields.io/crates/v/tinyexpr.svg)](https://crates.io/crates/tinyexpr)\n[![Documentation](https://docs.rs/tinyexpr/badge.svg)](https://docs.rs/tinyexpr)\n[![CI](https://github.com/kondrak/tinyexpr-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/kondrak/tinyexpr-rs/actions/workflows/rust.yml)\n[![Coverage Status](https://coveralls.io/repos/github/kondrak/tinyexpr-rs/badge.svg?branch=master)](https://coveralls.io/github/kondrak/tinyexpr-rs?branch=master)\n![](https://img.shields.io/crates/l/json.svg)\n\nTiny recursive descent expression parser, compiler, and evaluation engine for math expressions.\n\nThis is a WIP port of [TinyExpr](https://github.com/codeplea/tinyexpr) to Rust. Current release only supports built-in system functions (trigonometry, algebraic operations, constants, etc.). See the `tests` module for more examples.\n\n[Documentation](https://docs.rs/tinyexpr)\n\nUsage\n-----\n```toml\n# Cargo.toml\n[dependencies]\ntinyexpr = \"0.1\"\n```\n\nExample\n-------\n```rust\nextern crate tinyexpr;\n\nfn main()\n{\n    // parse the expression and fetch result\n    let r = tinyexpr::interp(\"2+2*2\").unwrap();\n\n    // should print \"6\"\n    println!(\"{:?}\", r);\n}\n```\n\nBuild instructions\n------------------\n\n```\ncargo build\ncargo run --example tinyexpr\n```\n\n## Todo\n- support custom user functions\n- support functions taking more than 2 parameters\n- support closures\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkondrak%2Ftinyexpr-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkondrak%2Ftinyexpr-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkondrak%2Ftinyexpr-rs/lists"}