Stephen J. Turnbull wrote:
Didier Verna <didier(a)xemacs.org> suggested embedding a
scannerless
parser in XEmacs. You could ask him if he ever did anything with
that.
Nope, like 99% of my XEmacs-related projects in the last 6 years :-(
Or create a loadable module to embed bison in XEmacs ....
(That's
hard, since it needs to work on Lisp buffers rather than raw text.)
That was more the idea, yeah.
My original idea (IIRC) was that the notion of major mode as it is right
now is shaky/obsolete. The way to go is do natively (I insist on
"natively") something in the lines of mmm. For instance, in a code
buffer, you want text-mode in comments and <code>-mode in the code
areas. There would be some kind of "meta-mode" to coordinate all
involved (sub-)major-modes, but no <prog-lang>-mode should have to deal
with the contents of comments in itself[1]. For that (and also to ease
fontification) we would really need a proper syntactic analysis in
buffers.
Footnotes:
[1] Of course, things can be more complex than that, for instance in
strings where you would like text-oriented editing, but the language
also has something to say about string syntax.
--
European Lisp Symposium, May 2009:
http://www.european-lisp-symposium.org
European Lisp Workshop, July 2009:
http://elw.bknr.net/2009
Scientific site:
http://www.lrde.epita.fr/~didier
Music (Jazz) site:
http://www.didierverna.com
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta