Initial implementation of multiple parsing result types. Still breaks on one test case, though.