codeplea/tinyexpr
tiny recursive descent expression parser, compiler, and evaluation engine for math expressions observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 96
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 3877
- days_rel: 27
- days_push: 27
- n_releases_24m: 2
Adoption not part of the score
1919 stars · 309 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
TinyExpr is a small recursive descent parser, compiler, and evaluation engine for math expressions in C. It ships as a single source and header file with no dependencies, supporting standard operators, C math functions, custom functions, and runtime variable binding.
Use cases
- evaluate math expressions at runtime in C
- add a calculator to my application
- parse user-entered formulas like sqrt(3^2+4^2)
- bind variables into math expressions at eval time
- embed a tiny expression evaluator in an embedded project
- support custom math functions in a formula parser
When to choose
- you need a tiny, dependency-free C library for evaluating math expressions
- you want a single-file solution that is easy to integrate and thread-safe
- you need runtime variable binding and custom function support
When to avoid
- you need symbolic math, algebra, or arbitrary-precision arithmetic
- you need a full expression language with strings, arrays, or control flow
- your project is not in C/C++ or a language with C interop
Facets
library · maturity stable
parser interpreter math developer-tools parsers c cpp embedded cross-platform expression-evaluator recursive-descent single-file calculator no-dependencies thread-safe algorithms
3 sources
- readme: https://github.com/codeplea/tinyexpr · fetched 2026-08-28 · e9a8cab16eb6
- homepage: https://codeplea.com/tinyexpr · fetched 2026-08-29 · b42846612747
- site_page: https://codeplea.com/about · fetched 2026-08-29 · 5f92223ee9f2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| codeplea/tinyexpr | main | 97 |
For agents
markdown · JSON · MCP: product_card(name="codeplea/tinyexpr")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem