cparse
pratt-parser-calculator
cparse | pratt-parser-calculator | |
---|---|---|
1 | 1 | |
328 | 2 | |
0.3% | - | |
0.0 | 0.0 | |
9 months ago | over 1 year ago | |
C++ | C++ | |
MIT License | MIT 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.
cparse
-
How to calculate an expression that is stored in a string in C++
This parser looks like it might be appropriate. This one looks like it's based on the same code, but looks potentially abandoned.
pratt-parser-calculator
-
If you have 4+3*2, is there an algorithm to calculate this in one pass? Or do you need to convert to RPN/postfix, then use another algorithm to calculate?
It can be done in one pass. I implemented a pratt parser for this kind of expressions: https://github.com/foolnotion/pratt-parser-calculator
What are some alternatives?
ti95interface - All files related to the Arduino Leonardo-based replacement TI-74/95 cassette interface I am building. This interface will let you send and receive TI-74/95 programs from a Linux machine.
entt - Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more
cpp-expression-parser - Expression parsing in C++ with Dijkstra's Shunting-yard algorithm.
picomath - Fast math expression evaluation (C++ header only library)
supercollider - An audio server, programming language, and IDE for sound synthesis and algorithmic composition.
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework
yaal - Yet another abstraction layer - a general purpose C++ library.
booleval - Header-only C++17 library for evaluating logical expressions.
ExprTK - C++ Mathematical Expression Parsing And Evaluation Library https://www.partow.net/programming/exprtk/index.html
Magic Enum C++ - Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
cl-prattler - A Pratt parser for arithmetic expressions written in Common Lisp.