Unfortunately, the list of "what it takes to support a language" is
not enumerated well. At the moment, the basic assumption is that a
good parser does the trick. There are actually a lot of routines that
could be customized to get good behavior for a language, though
usually the default is ok.
For example, `semantic-tag-abstract-p'. Does it return the right
answer in python? You might not notice since it's used for showing
UML formated tag strings, or python might not have that concept. I
Two good starting points are:
M-x semantic-test-all-format-tag-functions RET
while the cursor is on some definition. Does it show the right thing?
Does it handle private/protected locks? Italic or underlined for
abstract or static?
Another good one is figuring out how to get the analyzer and smart
completion working. This deals with custom context parsers, divining
local variables, and good stuff like that. Why I try stuff in the one
test file I have, it just beeps, so I haven't looked into it.
PHP needs all that, plus a parser, and some sort of mixed-mode parsing
>>> "Rohan Nicholls" <rohan.nicholls@...> seems to think that:
>I had assumed that python support was mature, and was thinking the
>php support would be what I would help with. But now I am conflicted. ;)
>I will have to look at this more closely.
>On 8/28/07, Eric M. Ludlam <eric@...> wrote:
>> Were you interested in working on PHP support, or on Python?
>> Php needs a wisent parser to get started with. Python is farther
>> along, and needs someone to run all the semantic tools against it and
>> start tuning Semantic for use with Python.
>> >>> "Rohan Nicholls" <rohan.nicholls@...> seems to think that:
>> >Sorry all,
>> >I managed to escape php slavery, to using python for work. But I am
>> >happy to help out with elisp (which I have a pretty good understanding
>> >of) problems. If cedet could support php, it would place it nicely as
>> >an alternative ide, as the zend ide is not very good and horribly
>> >clunky, and eclipse has almost no support for the things that matter
>> >in an ide.
>> >I had started looking at how to do this, but got distracted with a
>> >completion mode for plt scheme. That is finished now.
>> >Good luck and let me know if i can help.
>> >On 8/9/07, Bas Kok <bakotaco@...> wrote:
>> >> Hi Ivan and others,
>> >> On 8/9/07, Ivan Gomez Rodriguez <igomez@...> wrote:
>> >> > Hi, I want to get php support for semantic, because i like to use ecb in
>> >> > my daily work with php.
>> >> >
>> >> > I've a lexer and parser for PHP flex and bison format (from phc, a php
>> >> > compiler). What can i do in order to get a, for example, a wisent PHP
>> >> > parser.
>> >> > I've no experience with elisp and i had no concrete information about
>> >> > this issue.
>> >> A friend of mine (Hi, Rohan) and me also had the idea of adding php
>> >> support to semantic, however our plan has never passed the conceptual
>> >> phase. As I'm also bound to (painstakingly) using php for my day job I
>> >> also would like to see this. I already know a little elisp, however
>> >> never got around to dive into the cedet code yet. What would be good
>> >> starting points? @Ivan: perhaps it's an idea to team up on this.
>> >> Cheers,
>> >> --
>> >> Bas
>> [ ... ]
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org