Skip to content

TinyExpr v1.1

Choose a tag to compare

@codeplea codeplea released this 06 Aug 02:40
· 8 commits to master since this release

First tagged release of TinyExpr. The library has been stable and in production use for years; this tag gives package managers and vendored copies a fixed point to pin.

Highlights

New features

  • Comparison and logical operators: <, <=, >, >=, ==, !=, &&, ||, and !, following C operator precedence

Fixes and robustness

  • Locale-independent number parsing, so expressions behave the same regardless of the system locale (#142)
  • Parser recursion depth is now limited, preventing stack overflow on deeply nested expressions (#136)
  • Fixed unary operator handling when compiled with TE_POW_FROM_RIGHT (#52)
  • Fixed undefined behavior from passing signed chars to ctype functions (#105)
  • Allocation failures during parsing are now handled gracefully
  • Improved error position reporting

Portability and infrastructure

  • ARMCC compiler support (#119)
  • Continuous integration via GitHub Actions: gcc and clang on Linux, plus macOS