Add the parser

Add the parser class to the interpreter by roughly porting the
tutorial's javascript version into ruby. We can make this much more
elegant soon. It's too difficult to easily understand right now.