Lexer methods mostly implemented