Finished tmlanguage parsing logic

Now to write tests