Skip to content

System Requirements

Conor Holden edited this page Nov 22, 2019 · 3 revisions

System Requirements

A General Requirements

  1. Read an input file
  2. Provide an output
  3. Handle blank or no input 4.Handle errors and exceptions 5.Adhere to the predefined interfaces

B Tokenizer Requirements

  1. Find the start and end of a string of numbers
  2. Detect valid and invalid characters
  3. Detect decimal place as part of number
  4. Detect if number is integer or float

C Infix-to-Postfix Requirements

  1. Produce correct order of operations
  2. Handle parentheses

D Code Generator Requirements

  1. Identify Operators
  2. Generate Integer or floating point load instruction

E Virtual Machine Requirements

  1. Detect invalid instruction
  2. Detect impossible instructions e.g dividing by zero
  3. Operations with both integers and float point numbers
  4. Handle Missing instructions or numbers
  5. Detect empty stack or stack with more than one element on output

Clone this wiki locally