Finished the parser core, except for testing.