On Tue, 5 Apr 2011, Eugeniy Meshcheryakov wrote:

> Hello,
> 
> I'm trying to check if new version of coccinelle (0.2.5) works correctly,
> and got strange results with python_regexp.cocci example:
> 
>    % spatch -sp_file /tmp/python_regexp.cocci python_regexp.c
>    init_defs_builtins: /usr/share/coccinelle/standard.h
>    File "/tmp/python_regexp.cocci", line 3, column 15,  charpos = 45
>        around = '', whole content = m = re.compile('_new$')
>    Fatal error: exception Failure("lexing: empty token")
> 
> Is it expected result, or is there something wrong with how I compile
> the package? Other examples that use python seem to work fine (after
> correcting syntax errors).

Indeed.  There was a change in how the SmPL parser manages strings in 
script code.  So it looks like a bug was introduced there.  It works fine 
with " rather than '.  I will try to fix it.

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

Reply via email to