Added lexer and parser mechanism.