Re[1]: [cedet-semantic] Wisent independent of semantic?
Brought to you by:
zappo
|
From: Eric M. L. <er...@si...> - 2003-10-29 14:17:54
|
>>> Oliver Scholz <alk...@gm...> seems to think that:
[ ... ]
>I want to write a parser for CSS 2, in order to write a CSS
>processor; i.e. not an addition to semantic to help me writing CSS,
>but a program that processes stylesheets and applies style
>information to buffer text. Right now I try to make up my mind
>whether I should use Wisent for this, or whether I should craft my
>parser by hand.
If CSS is much like html, then you could probably just use
xml-parse.el to do the work. That would really cut down on the work
you need to do.
If not, Wisent is the best choice for writing an interpreter in Emacs
Lisp.
>What troubles me is that to me it seems that Wisent is not intended to
>be used without Semantic. I downloaded the current Semantic beta
>package. I have found no place to download Wisent separately and its
>documentation is part of Semantic's documentation. But Semantic is a
>rather big package that seems to do a lot more than just parsing. I
>do not want to introduce too many dependencies.
Most users do not care about the parser, only that they get the
services in semantic. The cedet beta was put together as is to
simplify maintenance of all those packages for us, and to simplify
installation for users who used to need to install 3 to 4 different
tools just to satisfy a dependency from something like JDEE.
>As far as I can see (as I said, I have just started), I'd need only
>wisent.el and---at compile time---wisent-comp.el to generate a parser
>(I'd have to write my own lexer then?). Is that true? Will Wisent and
>Semantic stay separate packages?
You could also use semantic-lex.el to do your lexing. It makes
writing lexers pretty easy, but any lisp function that returns a
token stream could work, including external programs that output
Emacs Lisp lexical token expressions.
It seems clear that the semantic tool, and likely the cedet
distribution is too big for what you want. Do not forget that all of
CEDET and Semantic are covered by the GPL. You are welcome to take
only the bits you need out, and make your own mini-distribution. Care
would be needed to by those who install your tool not to install
conflicting versions of Semantic, however.
>Any chance that Wisent will become part of GNU Emacs in the future?
[ ... ]
Richard Stallman has expressed interest in this. As far as I know all
introductory paper work is available to the FSF to do this. No one
has taken the time to do the integration of the 1.4.4 version of
Semantic. It is likely it will happen when the CEDET distribution is
considered "stable" and released separately that such an integration
will occur.
Eric
--
Eric Ludlam: za...@gn..., er...@si...
Home: http://www.ludlam.net Siege: www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: www.gnu.org
|