Skip to content

adler3d/minimal_calc_for_simple_math_expr_in_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

minimal_calc_for_simple_math_expr_in_cpp

Minimal calculator for simple math expressions in C++11

The following operators are supported: / * - +

BasedOn:

  • std::string
  • std::vector
  • js like split/join
  • function overloading
  • preprocessor macros

Benefits:

  • no dependency
  • small code //37 lines, 1.8 KB
  • no compile time overhead
  • no link time overhead

For more complex calculations look at exprtk: http://www.partow.net/programming/exprtk/index.html

About

Minimal calculator for simple math expressions in C++11

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages