TinyExpr
Simple-expression-parser-in-C
TinyExpr | Simple-expression-parser-in-C | |
---|---|---|
2 | 1 | |
1,501 | 0 | |
- | - | |
3.5 | 3.0 | |
11 days ago | almost 2 years ago | |
C | C | |
zlib License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
TinyExpr
-
math expression interpreter
I had a hard time understanding your readme. I see that you use make to build the program; Why not compile? Does it read stdin or how do you use it? Is it a library you can include and use a command to evaluate arithmetic, like TinyExpr?
-
How would I go about creating a simple parser?
also read this codebase https://github.com/codeplea/tinyexpr
Simple-expression-parser-in-C
-
How would I go about creating a simple parser?
This Youtube video explains very well about parsing an expression. I wrote an implementation in C using the method described in the video. Hope this helps!
What are some alternatives?
ExprTK - C++ Mathematical Expression Parsing And Evaluation Library https://www.partow.net/programming/exprtk/index.html
muparser - muparser is a fast math parser library for C/C++ with (optional) OpenMP support.
LibTomMath - LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C.
QuantLib - The QuantLib C++ library
hlslpp - Math library using hlsl syntax with SSE/NEON support
ceval - A C/C++ library for parsing and evaluation of arithmetic expressions.
Vc - SIMD Vector Classes for C++
GLM - OpenGL Mathematics (GLM)
MIRACL - MIRACL Cryptographic SDK: Multiprecision Integer and Rational Arithmetic Cryptographic Library is a C software library that is widely regarded by developers as the gold standard open source SDK for elliptic curve cryptography (ECC).
Mission : Impossible (AutoDiff) - A concise C++17 implementation of automatic differentiation (operator overloading)
NT2
OpenBLAS - OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.