On Saturday 09 January 2010 17:26:37 Michael Stefaniuc wrote:
> Hello,
> 
> coccinelle 0.1.11 introduced regexp support for meta-identifier/function 
> and constant. The release notes says it's an OCaml regexp and points to 
> "man Str" for details but I don
> 
> I tried to make use of grouping and alternatives but I get errors like:
> identifier SPAM ~= "\(WINE_\)?\(ERR\|FIXME\|WARN\)";
>    Fatal error: exception Lexer_cocci.Lexical("unrecognised symbol:\(")
> identifier SPAM ~= "ERR\|FIXME\|WARN";
>    Fatal error: exception Lexer_cocci.Lexical("unrecognised symbol:\|")
> 
> Is this a known limitation or just a bug?

It seems to be a bug in Coccinelle. I need to relax the lexer to allow
these characters.

I will look at the problem.


> 
> thanks
> bye
>       michael
> 
> _______________________________________________
> Cocci mailing list
> [email protected]
> http://lists.diku.dk/mailman/listinfo/cocci
> (Web access from inside DIKUs LAN only)
> 

-- 
Nicolas Palix
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to