Skip to contentSkip to conversation

Parse error

Cocci Riccardo Lucchese 2 participants 3 messages Jul 21, 2014 – Jul 22, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

spatch fails to parse the following line

- if (!~e) S

in the attached .cocci test case.

Using

- if (!(~e)) S

instead, works fine.

Thanks,
riccardo
-------------- next part --------------
@@
identifier func;
expression e;
statement S;
@@
func(...) {
- if (!~e) S
}

#1 lore raw
Quoted 6 lines · Riccardo Lucchese

Hello,

spatch fails to parse the following line

- if (!~e) S

Quoted 7 lines

in the attached .cocci test case.

Using

- if (!(~e)) S

instead, works fine.

Strange. I will look ino it.

julia

#2 lore raw
In reply to Riccardo Lucchese
Quoted 6 lines · Riccardo Lucchese

Hello,

spatch fails to parse the following line

- if (!~e) S

Quoted 7 lines

in the attached .cocci test case.

Using

- if (!(~e)) S

instead, works fine.

It should work if you put a space between ! and ~.

julia