Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

CLI Calculator

Build

mkdir build
cd build
cmake ..
cmake --build .

Usage

./calc "math expresshion"

./calc "math expr with variables (x) + (y)" --var x=4 --var y=PI - if the name of var is not resolved it will turn to zero

The number of arguments is unlimited

Expansion

If you wnat add new tokens put token name in enum token.h And add math logic to calc.h and string parser calculatormodel.cpp

To add a new const value, enter the value in calculatormodel.h

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages