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 /r/cpp_questions

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • 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.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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