How to calculate an expression that is stored in a string in C++

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/cpp_questions

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Clean code begins in your IDE with SonarLint
  • SaaSHub - Software Alternatives and Reviews
  • cparse

    A C++ configurable Expression Parser. Useful as a Calculator or for helping you write your own Programming Language

    This parser looks like it might be appropriate. This one looks like it's based on the same code, but looks potentially abandoned.

  • cpp-expression-parser

    Expression parsing in C++ with Dijkstra's Shunting-yard algorithm.

    This parser looks like it might be appropriate. This one looks like it's based on the same code, but looks potentially abandoned.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • ExprTK

    C++ Mathematical Expression Parsing And Evaluation Library https://www.partow.net/programming/exprtk/index.html

    This ExprTk library looks promising: https://www.partow.net/programming/exprtk/index.html

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts