Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 431 Bytes

README.md

File metadata and controls

8 lines (5 loc) · 431 Bytes

C-calculator

A lightweight CLI calculator written in C.

Supports complex order of operations, with basic input validation (incomplete parenthesis, unrecognized characters).

Under the hood, the calculator parses the user's input, converts it into Polish (postfix) notation using and implementation of Djikstra's Shunting Yard algorithm.

There are still a few edge cases related to negative numbers -- for example, 4 - - 3.