On Fri, 2 Dec 2011, SF Markus Elfring wrote:

If you remove the space between "<+" and "..." your example works just fine.

Thanks for your hint.

Are there any chances to make the presented error message "minus: parse error" easier to understand?

No, I think it would be difficult. Yacc-like parsers are not always so helpful in this respect.

Would you like to support additional whitespace characters between the brackets (<+, +>) and the ellipsis?

No, I don't think so.  It's one concept, not < followed by dots.

By the way: Is the character U+2026 also accepted as a horizontal ellipsis (instead of three dots) by the grammar of the semantic patch language?

No.

Anyway, you may also want to consider cases where the result of the function is assigned to a variable that is unused.

Yes. - I'm also interested in further adjustments of the SmPL approach in this direction.
How can variable assignments chains be properly handled?

You can specify whatever pattern you want. On the other hand, nothing is done behind the scenes to help you.

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

Reply via email to