Skip to content

Simple infix notation text-based calculator without dynamic memory allocation

License

Notifications You must be signed in to change notification settings

PAJohnson/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator - Patrick Johnson 2018

Simple infix notation text-based calculator without dynamic memory allocation

TODO: Implement a macro expander.

This project is a simple calculator intended for (eventual) use on a microcontroller. As a result, it does not use dynamic memory allocation.

No dependencies besides the C standard library. Compile with "gcc -o calc main.c -lm"

How it works: User input is parsed. The input is evaluated one operator at a time. If only a numeric value remains, the input is considered evaluated, the answer is printed, and the program waits for further expressions.

About

Simple infix notation text-based calculator without dynamic memory allocation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published