Share your repls and programming experiences

← Back to all posts
Expression Calculator
ApoorvAgrawal

This is an expression calculator made in Python and C++,
You can choose which one you want to use. Some supported expressions are:
1+2-(6/2)+5(7)
NOTE:
Unlike some "Calculators" it doesn't use eval().

Voters
Funkus
NoelB33
Coder100
ApoorvAgrawal
Comments
hotnewtop
Coder100

One suggestion: Precompile your C++ so you just have to do:
./Calculator ;)

ApoorvAgrawal

@Coder100 Good idea, Thanks

NoelB33

Very good but beyond my understanding lol.

Coder100

I like the lexer and parser!! Great job!

ApoorvAgrawal

@Coder100 thanks

Coder100

no problem :) @ApoorvAgrawal