Your challenge is to write an interpreter for Whitespace. Given a string consisting of spaces, tabs, newlines, and potentialpotentially other characters, as well as possible inputs for the Whitespace program itself, output the result of the given Whitespace program.
Here is an overview of the Whitespace language and its builtins:
Whitespace is a stack-based language which uses only three characters: spaces (ASCII codepoint 32); tabs (ASCII codepoint 9); and newlines (ASCII codepoint 10); all other characters are ignored.
It only has a couple of basic builtins, which I will go over below. Whitespace has both a stack, which can only consistsconsist of integers. As, as well as a heap, which is a map of integers (both the key and value).