Moving the first character calculation from Lexer to the Grammar.