Skip to content

noia1/Whitespace-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whitespace-Interpreter

What is Whitespace?
http://compsoc.dur.ac.uk/whitespace/index.php

Explanation of Whitespace functions:
http://compsoc.dur.ac.uk/whitespace/tutorial.php

My implementation of this Whitespace interpreter implements the required functions except:

  1. All flow control.
  2. Stack Manipulation:
  • Duplicating the top item on the stack.
  • Copying the nth item on the stack onto the top of the stack.
  • Swap the two top items on the stack.
  • Slide n items off the stack, keeping the top item.

My design is very simple. There is a Parser.cc file that parses the file and sends out for the necessary functions. Lexor.cc is where all of the main functions are and where the stack and heap are stored. You can compile using my provided Makefile. All function names are very self explanatory.

Releases

No releases published

Packages

No packages published

Languages