Question about kdev-php

Heinz Wiesinger pprkut at liwjatan.at
Sun May 12 21:02:33 UTC 2013


On Sunday, May 12, 2013 01:23:35 PM Milian Wolff wrote:
> On Sunday 12 May 2013 11:14:33 Heinz Wiesinger wrote:
> > Hi Milian,
> > 
> > I started looking into adding missing syntax support for PHP 5.4/5.5 to
> > kdev- php. I already filed a review request for the short array syntax
> > introduced in 5.4 and have working support locally for function array
> > dereferencing and array literal dereferencing.
> 
> Jup looks good - thanks for that. Just add a unit test and I'll happily
> merge it.

Alright, I'll look into that. All tests for the expression parser go into the 
same file? How can I run them?

> > I'm a bit stuck now trying to implement string literal dereferencing. I
> > have it working partially (for double quoted strings with variables) but
> > for full support I need to distinguish between code like
> > 
> > echo "string"[1];
> > 
> > and
> > 
> > echo true[1];
> > 
> > What I found so far is that both are matched by the
> > CONSTANT_ENCAPSED_STRING token in the commonScalar rule. But didn't find
> > anything about how this token is handled. Would appreciate some input :)
> 
> I'm not into PHP anymore, so I don't really know the feature you are talking
> about. Could you share a link to the specification?

https://wiki.php.net/rfc/constdereference

> Furthermore I'm swamped by work currently and can't really help you. But
> maybe Niko could take a look. Otherwise please ping me again in about two
> months.

I hope Niko is reading this then and doesn't have the same problem :)
Otherwise, in 2 months is Akademy. Assuming you go I might just ping you in 
person ;)

In the meantime I'll just refocus. It's not like there's nothing else to look 
at, heh.

Grs,
Heinz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20130512/94619795/attachment.sig>


More information about the KDevelop-devel mailing list