Recursive descent parser for compiler class- directly from tutorial