Its a mess. Probably a bad source for the grammar.
Cleaning up debugging and stuff in AST generation. Not satisfied with the result, will try more test cases.