On Sun, 17 Jun 2018, SF Markus Elfring wrote:

> >> I hoped that a semicolon could be interpreted as the closing delimiter
> >> for an assignment statement.
> >
> > No.  That would make the parse amiguous.
>
> I am curious on the clarification of related ambiguity concerns.

...; could match a sequence of statements followed by an empty statement
or a single statement consisting of an expression followed by a ;.  The
parser favors the former.  The former may seem less useful than the
latter, but the constraints of a yacc like parser mean that the former has
to be the one that is chosen.

> > While a ... can match a single expression,
>
> I hoped that the SmPL ellipsis could handle also an optional continuation
> for a computation so that I do not need to express a subsequent operator.

It can't.  This is not going to change.

julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to