ediprolog -- Emacs does Interactive Prolog
- From: Markus Triska <triska@xxxxxx>
- Date: Thu, 30 Nov 2006 22:08:48 +0100
Here are Emacs definitions that let you transparently interact with
SWI Prolog in all buffers. You can load and syntax-check Prolog
programs and execute queries with minimal exposure to the toplevel:
http://stud4.tuwien.ac.at/~e0225855/ediprolog/ediprolog.html
A video with a simple query, a CLP and a CHR program:
http://stud4.tuwien.ac.at/~e0225855/ediprolog/ediprolog.mpg
The definitions are self-contained and orthogonal to other Prolog
editing modes. The central function is "ediprolog-dwim" (Do What I
Mean). Depending on the line at point, it either loads the current
buffer into Prolog (moving point to the first error, if there are
any), or executes the query and inserts its results in the buffer. I
first saw this idea in Ulrich Neumerkel's GUPU teaching environment.
The code is in the public domain. While it currently depends on SWI's
prompts and "-q" switch, I hope that authors of other systems also
find it useful, and that they can adapt it to provide even better
development and teaching environments. If you have more suggestions or
ideas regarding editing/development features, please let me know.
All the best,
Markus Triska
.
- Follow-Ups:
- Re: ediprolog -- Emacs does Interactive Prolog
- From: Richard Szopa
- Re: ediprolog -- Emacs does Interactive Prolog
- Prev by Date: Re: Arithmetic puzzle
- Next by Date: Re: recursion
- Previous by thread: Arithmetic puzzle
- Next by thread: Re: ediprolog -- Emacs does Interactive Prolog
- Index(es):
Relevant Pages
|
|