I'm willing to look into this at least to gage the amount of work.
I may even do the work over a few months of time.
Eric, I see wisent-php.wy in contrib directory.
Would this be a good starting point?
As I recall semantic supports two different styles of grammar: bovine
and wisent. Should we consider using bovine instead of wisent?
Is c.by the default one that semantic uses rather than wisent-c.wy?
Is this reason enough to consider bovine?
Gary, where can I find documentation on lexical analysis of PHP?
The lexical analysis code at the end of wisent-php.wy is really trivial.
Is it that simple?
I took a quick look at the php bnf.
It does not look all that different from others on first glance, e.g.,
python.
Also can you create sample php files for testing purposes?
What I have in mind is really trivial files with just a few lines of
most basic code and working your way to to include more complex syntax.
If you could provide these, that would help a lot.
I have not done any php programming other than reading about it a long
time ago.
I took a quick look at http://www.emacswiki.org/emacs/PhpMode.
I saw a mention of mmm (multiple major mode), which is a package that
I've used for many years, so this is encouraging.
Again I will take a look at at the minimum write up of the issues as a
texinfo file, and even try to implement it.
-----Original Message-----
From: Eric M. Ludlam <eric@...>
To: Gary <cedet@...>
Cc: cedet-devel@...
Subject: Re: [CEDET-devel] PHP support status?
Date: Fri, 06 Aug 2010 18:46:04 -0400
On 08/06/2010 08:19 AM, Gary wrote:
> Eric M. Ludlam wrote:
>> On 08/06/2010 05:01 AM, Gary wrote:
>>> Gary wrote:
>>>
>>>> I see that it seems to be traditional to ask about the current state of
>>>> cedet's php support about once per year. This time it seems it is my
>>>> turn.
>>>
>>> Nobody? :(
>>>
>>
>> Hi,
>>
>> The current PHP support is at a dead-end, with the original contributor
>> uninterested/willing to continue maintenance.
>
> You mean php mode (Aaron S. Hawley is the maintainer of that, and I
> found him pretty responsive when I had a problem)? Or something within
> cedet? If within cedet, where is it, please?
>
> I currently use nxhtml for my php editing needs (which includes some
> hacked up version of php mode AFAICT), but it really is only good for
> that - editing. It misses project based support and the like (which, I
> hasten to add, is fine - it is meant as an editing mode).
That is not what I was referring to. I was only referring to the php
support for CEDET's Semantic parser. I'm sure the Aaron is doing fine.
>> There is a second smaller php parser on EmacsWiki, but I don't know what
>> state that is in.
>
> *scratches head* I don't see anything. Even google only finds some
> references to nxhtml:
> http://www.google.com/search?q=site:emacswiki.org+"php+parser"&hl=e
http://www.emacswiki.org/emacs/semantic-php-simplest-grammar.by
>> Two folks from this list were interested in making a new version of the
>> php parser which could be come part of core CEDET
>
> Yeah, I saw that :) It's why I asked what the current status was :)
>
>> and I was hoping they would reply to your email.
>
> Me too :(
>
>> On the whole, there is no active maintainer that I know of.
>
> :(
>
> Do I remember correctly that one basically needs a BNF language
> definition as a starting point? Will EBNF suit?
> http://www.icosaedro.it/articoli/php-syntax-ebnf.txt seems to be mostly
> there, "only" missing a few fixes.
The parsers in Semantic can be made in lots of different ways. One is
to convert a bnf into a parser for the 'wisent' parser generator in
Semantic, which is what the php support in cedet/contrib is.
Any future work would be best served by being developed by people who
can sign papers with the FSF and assign copyright so that it can be
included in core CEDET/Emacs.
Eric
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Cedet-devel mailing list
Cedet-devel@...
https://lists.sourceforge.net/lists/listinfo/cedet-devel
|