[Haskell-cafe] Alex and Flex

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Fri Oct 3 12:26:13 EDT 2008

On Oct 3, 2008, at 09:24 , Manlio Perillo wrote:
> Manlio Perillo ha scritto:
>> However I have noted that there are some difference in the syntax  
>> between Alex and Flex?
>> What is the rationale?
> By the way, here is the list of differences between Alex and Flex I  
> have found, for people interested:
> 3) Alex does not support
>       [_a-z0-9-]
>   that must be rewritten as
>       [_a-z0-9\-]

The only *reliable* way to write that cset is to put the '-' as the  
first item.  Likewise for ']' (and if you must match both, "[-]...]").

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list