[erlang-questions] Leex - a lexical anaylzer generator, released

Robert Virding rvirding@REDACTED
Sun Jun 1 17:40:00 CEST 2008


2008/5/30 Ben Hood <0x6e6562@REDACTED>:

> One feature that I miss from other CC toolkits is being able to declare
> your regexs to be case insensitive.
>
> Here's an example from a JavaCC grammar:
>
> /* Reserved Words */
> TOKEN [IGNORE_CASE] :
> {
>    <  NOT     : "NOT">
>  | <  AND     : "AND">
>  | <  OR      : "OR">
>  | <  BETWEEN : "BETWEEN">
>  | <  LIKE    : "LIKE">
>  | <  ESCAPE  : "ESCAPE">
>  | <  IN      : "IN">
>  | <  IS      : "IS">
>  | <  TRUE    : "TRUE" >
>  | <  FALSE   : "FALSE" >
>  | <  NULL    : "NULL" >
>  | <  XPATH   : "XPATH" >
>  | <  XQUERY  : "XQUERY" >
> }
>
> I ended having to put patterns in like
>
> between|BETWEEN
>
> to match lower and upper cases alike.
>
> I know that you are bound by what the regexp module can give you though.


I know I know. This is a feature which is lacking in the regexp module as
well. :-) Maybe in a future release (of both).

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080601/2d373184/attachment.htm>


More information about the erlang-questions mailing list