Hi,
I’m close to finish uniform variable syntax but I realised that after migration to PHP7, problem with static access/assign will be no longer reported.
For example this: class Test { private $x = call(); }
from parser point is 100% valid since PHP7. PHP7 will throw special fatal error later, while AST creation: Constant _expression_ contains invalid operations
So, we lost a lot of valuable errors.
I can restore it on parser or AST level. Or just ignore it for now: 1. AST looks good on first look, but if behaviour will change we will have a problem because compiler AST know nothing about PHP version. 2. Our parser will be more complex than should be, but we can later move these checks to semantic analysis.
What you think? -- Dawid Pakuła +48 795 996 064
On 4 Aug 2015 at 13:05:14, Michał Niewrzał (michal.n@xxxxxxxx) wrote:
Hi All,
I'm looking volunteer to work with Uniform Variable
Syntax[1] :-) I'm a little bit tired messing with parsers and help
would be great. Of course I can help with everything around this
feature ;)
Michal
_______________________________________________
pdt-dev mailing list
pdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/pdt-dev
|