added cursor and console log of lexer