Skip to content

Adwaith-Rajesh/c_eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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....

About

An overly complicated expression evaluation in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published