Another(yes I have a problem with calculators) simple CLI calculator write in C++.
You know its calculator just type some expression on it.
+ (add)
- (subtraction)
/ (division)
* (multiplication)
= (atribuition)
== (equal)
!= (not equal)
>= (greater than or equal to)
<= (less than or equal to)
< (less than)
> (greater than)
Very important to say that for this program to work you will need the GNU Readline library.
git clone https://github.com/JohhnMag0/genp.git
# if clang
clang++ abakus.cpp -lreadline
# if g++
g++ abakus.cpp -lreadline
If you want to get an overview of how this works, you can get an idea in here: https://johhnmag0.github.io/. Yes I got a good part of the idea of the structure of the code by reading about LLVM in the following link https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/index.html