Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 676 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 676 Bytes

c_eval

An overly complicated expression evaluation in C.

My first attempt at making a proper C project

Why ?

Why Not?. I'm bored, I've nothing to do. And a project like this is one hell of a learning experience.

Build and Run

Make sure that you've a c compiler GCC or clang

Clone the repo and build the exe

git clone https://github.com/Adwaith-Rajesh/c_eval.git
cd c_eval
gcc nobuild.c -o ./nobuild
./nobuild

Now try evaluating an expression

chmod +x run.sh
./run.sh '( 3.56 * ( 20 * 3 ) + 1 )'
214.600000

make sure to leave space between operators and operands

Bye....