[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: CEDET, DL & parsing thoughts
From: |
Eric M. Ludlam |
Subject: |
Re[2]: CEDET, DL & parsing thoughts |
Date: |
Tue, 2 Sep 2008 16:01:33 -0400 |
>>> address@hidden seems to think that:
>"Richard M. Stallman" <address@hidden> writes:
>
>> This is true now for what is in CEDET. There are already 6 grammars
>> that work pretty well that enthusiasts of a particular language have
>> written. (Erlang, python, csharp, javascript, 2 php parsers, and
>> ruby.)
>>
>> I note the absence of C and C++. I guess that's because their grammar
>> is so complex that the job would be hard to do. But it is a real
>> shame to support Microsoft's language, C#, and not support Java.
>> Can you recruit someone to support Java?
>>
>> Also we need Emacs Lisp and Scheme?
>
>cedet/semantic/wisent/wisent-java.wy
>cedet/semantic/wisent/wisent-java-tags.wy
>cedet/semantic/wisent/wisent-awk.wy
>cedet/semantic/wisent/wisent-calc.wy
>cedet/semantic/wisent/wisent-python.wy
>cedet/semantic/wisent/wisent-cim.wy
>cedet/semantic/wisent/wisent-c.wy
>cedet/semantic/semantic-grammar.wy
>cedet/cogre/wisent-dot.wy
>cedet/contrib/wisent-ruby.wy
>cedet/contrib/wisent-javascript-jv.wy
>cedet/contrib/wisent-php.wy
>cedet/contrib/wisent-csharp.wy
>cedet/srecode/srecode-template.wy
>
>
>So, I think Eric meant the files in "contrib" whereas Cedet supports all
>the grammars above, including Java and C.
Yes. I was trying to point out that it is easy to support a language
using CEDET/Semantic by the existence of the 6 grammars which *I* did
not write. The question I was trying to answer was if only super
hackers could support a language, so I was trying to point this out
that there are 6 regular hackers who have been successful. There are
only two such hand crafted all Elisp super-parsers that I know of,
thus justifying the model I had proposed. This, of course, assumes I
am a super-hacker. I would rather think I'm just more familiar with
CEDET internals than most. :)
I, and other core CEDET developers have, as joakim pointed out above,
implemented many other grammars. Missing from joakim's list are:
cedet/semantic/bovine/make.by
cedet/semantic/bovine/scheme.by
cedet/semantic/bovine/c.by ; also has c++
plus a hand-written grammar for Elisp. (I skipped the grammar
compilation step, and just typed in compiler compiler style output.)
There are also some regexp based grammars for html and texinfo, and
grammars for the grammar files.
>(I contributed the javascript grammar, and I intend to move it to the
>Cedet core, so it also will be included when Cedet is merged in Emacs
>CVS.)
[ ... ]
If you have signed this stuff over, let me know and I'll move it.
Thanks
Eric