First working version of the lexical parser