Skip to content

a lightweight expression evaluator optimized for high‑throughput/batched evaluation. It parses expressions to an optimized AST and compiles them into native code for very fast evaluation across large input sets.

Notifications You must be signed in to change notification settings

keyneom/cruncher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cruncher

This library takes a string such as "x + 2 / 3 * ( z ^ 4 )" and allows you to pass in a dictionary with values defined for each variable used and get the result.

Right now the tests do the best job of providing examples of how to interact with the library.

It is a work in progress but the main functionality is there. The lexer/parser needs to be improved as it is sensitive to spacing.

About

a lightweight expression evaluator optimized for high‑throughput/batched evaluation. It parses expressions to an optimized AST and compiles them into native code for very fast evaluation across large input sets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages