Ported rules of lexer