Seperated lexical parser into seperate module.