From: "Eric M. Ludlam" <eric@siege-engine.com>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re[2]: What IDE features are in CEDET?
Date: Fri, 25 Apr 2008 17:45:13 -0400 [thread overview]
Message-ID: <200804252145.m3PLjDMj013623@projectile.siege-engine.com> (raw)
In-Reply-To: <48123A8F.6090504@gmail.com> (lennart.borgman@gmail.com)
>>> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> seems to think that:
>Eric M. Ludlam wrote:
>> 2) Code parsing / Code structure database
>...
>> I'd say that the Semantic core is stable, the core languages with
>> parsers are pretty good. The C++ parser really needs to be ported
>> from the old (semantic version 1) parser to the new bison based
>> parser David Ponce wrote, and the gcc-xml thing I read about
>> recently is another neat option that could be used.
>
>There are some good parsers that need some changes to fit into the
>framework:
>
>- nxml-mode XML parser.
I use and like nxml mode, but I'm not really sure what the integration
path here is. If you suspect nxml-mode should use one of the
parser-generator frameworks, then I would have to disagree. If you
suspect the existing nxml parser output could be translated into the
same style of output as Semantic's tag structures, that can work, but
I'm not entirely sure what would be done with the results since xml
is flexible enough to cause every schema to need it's own translator
into Semantic tag format.
>- Steve Yegge's javascript parser.
Steve has expressed displeasure with the CEDET infrastructure. In
addition, the semantic parser doesn't meet his goals. He has some
good concepts that would be worthwhile in Semantic though, such as
handling colors and indentation, and allowing incremental first-time
parsing.
Semantic has incremental parsing also, but only have a full pass has
been done.
>It think that some parser also should be rewritten to work with parts of
>a buffer so that all the languages for building XHTML (like PHP etc) can
>be supported. A lot of programming is done with such languages today and
>IMO it also has a democratic value since frameworks for exchanging
>information (Drupal, WordPress etc) are built in those languages.
There was a long thread on this topic in the cedet-devel@sf.net
mailing list. Semantic's mode targeting is done using
"mode-local.el" which is part of CEDET, which allows simple context
switching between language features in a single buffer.
>> * Parsers for indenting / coloring
>> I get this question alot. Can a Semantic parser be used for
>> indentation or coloring? Answer: yes. I just haven't done it. The
>> more interesting question is, can a single parser provide data about
>> the code, indentation, and coloring at the same time without making
>> it too hard to maintain?
>
>I am not sure what the benefits with a single parser would be. Instead I
>believe that a framework that cooperates with Semantic in some way and
>gives it chunks with different major modes would have benefits. (I hope
>mumamo can provide this.)
The benefit to a single parser for multiple jobs against a single
language in a single buffer is that you only need to lex it and run
through the parser once. You are talking about multiple languages in
a single buffer which is different. Multiple parsers is fine in that
case since each character in the buffer would only be lex'd up once.
Eric
--
Eric Ludlam: eric@siege-engine.com
Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net
next prev parent reply other threads:[~2008-04-25 21:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-25 17:27 What IDE features are in CEDET? Eric M. Ludlam
2008-04-25 20:09 ` Lennart Borgman (gmail)
2008-04-25 21:45 ` Eric M. Ludlam [this message]
2008-04-25 22:09 ` Lennart Borgman (gmail)
2008-04-25 23:16 ` Re[2]: " Eric M. Ludlam
2008-04-26 14:49 ` Richard M Stallman
2008-04-26 4:45 ` Richard M Stallman
2008-04-26 12:26 ` Re[2]: " Eric M. Ludlam
2008-04-26 21:54 ` Richard M Stallman
2008-04-28 2:28 ` Re[2]: " Eric M. Ludlam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200804252145.m3PLjDMj013623@projectile.siege-engine.com \
--to=eric@siege-engine.com \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.