Home > Archive > Prolog > May 2006 > Newbie question: how do people work in prolog?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Newbie question: how do people work in prolog?
|
|
| Matthew Wilson 2006-05-10, 7:03 pm |
| I'm teaching myself prolog. I run GNU Prolog on my XP desktop and I
have a gvim window running also. I type a few rules into vim, then
consult the file into the prolog window, then do a few queries.
I have a few questions:
1. Is it ever possible to put the rules into the interactive interpreter?
2. Are there any IDEs that combine the editor and the interpreter
together? I used to use emacs -- does that have a prolog mode?
3. More generally, how do other people do prolog work?
TIA
Matt
--
A better way of running series of SAS programs:
http://overlook.homelinux.net/wilso...SasAndMakefiles
| |
|
| Matthew Wilson ha scritto:
>
> 2. Are there any IDEs that combine the editor and the interpreter
> together? I used to use emacs -- does that have a prolog mode?
>
eclipse+prolog plug-in
| |
| Cesar Rabak 2006-05-10, 7:03 pm |
| Matthew Wilson escreveu:
> I'm teaching myself prolog. I run GNU Prolog on my XP desktop and I
> have a gvim window running also. I type a few rules into vim, then
> consult the file into the prolog window, then do a few queries.
>
You should consider getting a good reference on the basics of the
language as well.
> I have a few questions:
>
> 1. Is it ever possible to put the rules into the interactive interpreter?
>
Yes. Search the manual for asserta, assertz.
> 2. Are there any IDEs that combine the editor and the interpreter
> together? I used to use emacs -- does that have a prolog mode?
Yes. Yes.
>
> 3. More generally, how do other people do prolog work?
Well Matt , this is a too broad question to have a closed answer!
--
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
| |
|
| On Wed, 10 May 2006 19:13:48 -0300, Cesar Rabak
<cesar.rabak@gmail.com> wrote:
>Matthew Wilson escreveu:
>You should consider getting a good reference on the basics of the
>language as well.
>
>Yes. Search the manual for asserta, assertz.
>
>
>Yes. Yes.
>
>
>Well Matt , this is a too broad question to have a closed answer!
Actually, there is book by Clocksin "Clause and Effect : Prolog
Programming for the Working Programmer" where he writes a bit what it
means to write Prolog program.
A.L.
| |
| newser.bbs@bbs.ee.ncu.edu.tw 2006-05-11, 4:05 am |
|
Matthew Wilson wrote:
> 1. Is it ever possible to put the rules into the interactive interpreter?
Yes . There are 2 ways .
----------------------------------------------
[user].
(Your codes)
(ctrl-D)
----------------------------------------------
assertz( YourPredicates).
assertz((YourClause)).
> 3. More generally, how do other people do prolog work?
Other ? I think I belong to OTHER people.
I used to write program in TURBO PROLOG IDE .
Then run it . If any problem , Then trace it .
Almost always there are something suprising ,
those are very subtle difference from my points of view to
the reality problems.
And this makes programming interesting.
..
| |
| Erik Braun 2006-05-11, 8:01 am |
| Matthew Wilson <matt@overlook.homelinux.net> wrote:
> 3. More generally, how do other people do prolog work?
I am quite happy with SWI-Prolog, which includes an editor and
a debugger.
Erik
| |
| Matthew Wilson 2006-05-11, 8:01 am |
| On Wed 10 May 2006 06:13:48 PM EDT, Cesar Rabak wrote:
>
> Well Matt , this is a too broad question to have a closed answer!
Yeah, I could have asked, "for those that reply, a description of how
you personally use prolog would be appreciated."
--
A better way of running series of SAS programs:
http://overlook.homelinux.net/wilso...SasAndMakefiles
| |
| Duncan Patton 2006-05-12, 7:03 pm |
| On Wed, 10 May 2006 15:47:20 GMT
Matthew Wilson <matt@overlook.homelinux.net> wrote:
> I'm teaching myself prolog. I run GNU Prolog on my XP desktop and I
> have a gvim window running also. I type a few rules into vim, then
> consult the file into the prolog window, then do a few queries.
>
> I have a few questions:
>
> 1. Is it ever possible to put the rules into the interactive interpreter?
>
> 2. Are there any IDEs that combine the editor and the interpreter
> together? I used to use emacs -- does that have a prolog mode?
>
> 3. More generally, how do other people do prolog work?
>
I use prolog mostly for system integration glue, so it's
whatever editor (vi/emacs/weird) and gcc a lot of the
time. A vi-like editor on Xnix with prolog syntax highlighting
would make me happy.
Dhu
>
> TIA
>
> Matt
>
> --
> A better way of running series of SAS programs:
> http://overlook.homelinux.net/wilso...SasAndMakefiles
--
???????????????????????????????????????
Open Systems Integration
Contact Fubar the Hack: fubar AT neotext.ca
Area code seven eight zero, Exchange four six six, Local zero one zero nine
Highland terms, Canadian workmanship.
All persons named herein are purely fictional victims
of the Canidian Bagle Breeder's Association.
Save the Bagle!
Sun Dhu
???????????????????????????????????????
| |
|
| On Fri, 12 May 2006 22:11:50 GMT, Duncan Patton <campbell@neotext.ca>
wrote:
>???????????????????????????????????????
>
>Open Systems Integration
>
>Contact Fubar the Hack: fubar AT neotext.ca
>
>Area code seven eight zero, Exchange four six six, Local zero one zero nine
>
>Highland terms, Canadian workmanship.
>
>All persons named herein are purely fictional victims
>of the Canidian Bagle Breeder's Association.
>
>Save the Bagle!
>
>Sun Dhu
>
>
>???????????????????????????????????????
Could you please provide some comments? Is this about Prolog?...
A.L.
|
|
|
|
|