renamed compile to parse and added tests.