Skip to content
Conor Holden edited this page Oct 18, 2019 · 16 revisions

Calculator Project Documentation

Revision Date Details
0 2018-10-11 Initial Version

System Overview

The goal of this project is to create a calculator using the coding language of C. This project will allow the user to solve simple mathematical problems by inputting the equation they want into an input file. The calculator will then take the file with the equation and go through the process of tokenizing, converting infix to postfix, generating the code, and have the code interpreted by a virtual machine. The system will consist of four components: a tokenizer, infix to postfix converter, code generator, and a virtual machine or interpreter.

  • Tokenizer: This will allow the calculator to determine what and how many tokens are present. It will also allow for the tokens to be distinguished.
  • Infix-to-Postfix Converter: This conversion will allow for smoother and faster calculations due to the fact that parentheses would not be required while calculating an equation. https://gist.github.com/AnthonyDiGirolamo/1179218/2faf71295ee853facac6dd4f2984672bd9dcb9ad
  • Code Generator: This allows for the converted equation to be correctly generated so that it can be read by the virtual machine.
  • Virtual Machine/Interpreter: The virtual machine reads and interprets the generated code.
Clone this wiki locally