implement the lexical parse