booleval
pratt-parser-calculator
booleval | pratt-parser-calculator | |
---|---|---|
1 | 1 | |
81 | 2 | |
- | - | |
0.0 | 3.5 | |
over 2 years ago | about 1 month 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.
booleval
-
booleval v2.0 released
booleval is header-only C++17 library for evaluating logical expressions. This means that, if you want to filter out stream of objects (e.g. objects representing network packets) by stringified logical expression, you can do it easily with this library.
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?
cppast - Library to parse and work with the C++ AST
entt - Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more
expr-ir - An Expression Tree to LLVM-IR Example.
picomath - Fast math expression evaluation (C++ header only library)
cparse - A C++ configurable Expression Parser. Useful as a Calculator or for helping you write your own Programming Language
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
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework
Elements C++ GUI library - Elements C++ GUI library
BazPO - Easy to use program options argument parser
cl-prattler - A Pratt parser for arithmetic expressions written in Common Lisp.