On 03.02.2017 at 18:53, Levi Morrison wrote:

> One more thing: I'd like to re-emphasize that the syntax that
> JavaScript uses and the one that HHVM/Hack uses are ambiguous in the
> current class of our grammar. The following will not work unless we
> move to a more powerful grammar and parser class:
> 
>     (params) => expr
>     (params) ==> expr

I'm not really familiar with re2c and bison, but I wonder why it's
possible to distinguish

  expr > expr

from

  expr -> expr

then.

Note that I'm not suggesting to use the Hack syntax here – I'm just curious.

-- 
Christoph M. Becker

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to