[ragel-users] question about the union operation
Adrian Thurston
thurs... at cs.queensu.ca
Fri Feb 15 18:11:23 UTC 2008
Hi Manoj,
Within or literals - is used to separate ranges. You'll need to escape
the '-' character with '\'.
-Adrian
Manoj Rajagopalan wrote:
> hi ragel users,
>
> I find ragel having trouble with expressions like the following:
>
> (alnum | [_-])+
>
> I get errors like:
> mmp-parser.rl:33:30: at token RE_SqClose: parse error
>
> Is the above expression incorrect for matching a string that can
> contain alphanumeric characters or '_' or '-'
>
> thanks
> Manoj
>
> >
>
More information about the ragel-users
mailing list