Finished grammar together with the tests.