From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric M. Ludlam" Newsgroups: gmane.emacs.devel Subject: Re[2]: CEDET, DL & parsing thoughts Date: Tue, 2 Sep 2008 16:01:33 -0400 Message-ID: <200809022001.m82K1XnV025208@projectile.siege-engine.com> References: <200808300153.m7U1rAxA027402@projectile.siege-engine.com> <48B8AF53.8040501@gmail.com> <200808300904.m7U945JI029267@projectile.siege-engine.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1220385767 2815 80.91.229.12 (2 Sep 2008 20:02:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2008 20:02:47 +0000 (UTC) Cc: lennart.borgman@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 02 22:03:38 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kac5L-0004BU-UV for ged-emacs-devel@m.gmane.org; Tue, 02 Sep 2008 22:02:44 +0200 Original-Received: from localhost ([127.0.0.1]:39201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kac4M-0004X9-ON for ged-emacs-devel@m.gmane.org; Tue, 02 Sep 2008 16:01:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kac4I-0004WQ-Ja for emacs-devel@gnu.org; Tue, 02 Sep 2008 16:01:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kac4I-0004W2-0q for emacs-devel@gnu.org; Tue, 02 Sep 2008 16:01:38 -0400 Original-Received: from [199.232.76.173] (port=49343 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kac4H-0004Vy-TZ for emacs-devel@gnu.org; Tue, 02 Sep 2008 16:01:37 -0400 Original-Received: from static-71-184-83-10.bstnma.fios.verizon.net ([71.184.83.10]:34593 helo=projectile.siege-engine.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kac4H-0005ND-Nh for emacs-devel@gnu.org; Tue, 02 Sep 2008 16:01:37 -0400 Original-Received: from projectile.siege-engine.com (localhost.localdomain [127.0.0.1]) by projectile.siege-engine.com (8.12.8/8.12.8) with ESMTP id m82K1XWB025210; Tue, 2 Sep 2008 16:01:34 -0400 Original-Received: (from zappo@localhost) by projectile.siege-engine.com (8.12.8/8.12.8/Submit) id m82K1XnV025208; Tue, 2 Sep 2008 16:01:33 -0400 In-reply-to: (joakim@verona.se) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103441 Archived-At: >>> joakim@verona.se seems to think that: >"Richard M. Stallman" 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