Skip to content
WillyBlueSax edited this page Oct 9, 2019 · 16 revisions

Calculator Project Documentation

System Overview

TODO: description, data flow, architecture TODO: link

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 being interpreted by a virtual machine.

System Requirements

TODO: Systems Description
TODO: Link(s) one for each component?

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.
  • Infix2Postfix Converter: This conversion will allow for smoother and faster calculations due to the fact that parentheses would not be required while calculating an equation.
  • Code Generator: This allows for the converted equation to be correctly converted so that it can be read by the virtual machine.
  • Virtual Machine/Interpreter: The virtual machine reads and interprets the generated code.

System Interfaces

TODO: Description
TODO: link(s)

Clone this wiki locally