parser: factorize the lexer big accept switch