> 
> There is no need for "." or [^abc] as Haskell list operators
> can be used to "simulate" them.  The following is from the C
> lexer and matches all visible characters and all characters
> except newline, respectively:
> 
>   visible  = alt [' '..'\127']
>   anyButNL = alt (['\0'..'\255'] \\ ['\n'])


That is true, but how about dealing with unicode characters?

anyButNl = anyButNL = alt (['\0'..'\65536'] \\ ['\n'])

The space required becomes excessive.


Reply via email to