What's a good Prolog IDE for Linux?
Solution 1
Prolog mode for (X)Emacs.
See http://bruda.ca/emacs-prolog/
Solution 2
As mentioned you can use SWI-Prolog. If you like Eclipse there is an Eclipse plug-in that integrates SWI-Prolog into Eclipse. This way you have the best of both worlds, for example the SVN etc functions of Eclipse and the graphic debugger of SWI-Prolog. Worth checking out.
http://sewiki.iai.uni-bonn.de/research/pdt/start
Solution 3
SWI-Prolog comes with excellent IDE tools, an Emacs-clone text editor, interactive debugger, complete browseable help system and docs. Give it a try.
Solution 4
A good point to start is to use Emacs' default Prolog mode plus the additions described here. You can also try ediprolog, which aims for a tighter Emacs-Prolog integration.
Solution 5
I've not tried it (mostly because I never thought to combine the words "Prolog" and "NetBeans" before now), but there appears to be Prolog support for NetBeans. It's not a simple plugin, but a tutorial that shows how to add Prolog support to NetBeans.
Related videos on Youtube
Marcos Lara
Updated on September 28, 2020Comments
-
Marcos Lara over 3 years
I need to write some Prolog programs for a class.
Any recommendations?
-
Apollon over 15 years(X)Emacs will probably be worth getting familiar with. (If you're not already)
-
Matthew Schinckel over 15 yearsI'd say NetBeans was way overkill for Prolog. I find any old text editor (gedit does okay, but I use a Mac with SubEthaEdit). If you can change a mode so that comments are marked, there isn't really much syntax to highlight!
-
PoorLuzer over 14 yearsEmacs is the best option. X-Emacs is dead AFAIC.
-
simpatico almost 14 yearsNB ide doesn't support Prolog. What you refer to is how to create an IDE that supports Prolog based on NB Platform.
-
Bill the Lizard almost 14 years@simpatico: Thanks, I updated my answer to try and make it more clear that the link goes to a tutorial, not a plugin.
-
JesperE over 13 yearsI don't agree. Prolog is a fundamentally different language that say OO, but that doesn't mean that it doesn't lend itself to strong IDE support. One problem with many languages which cause trouble when doing an IDE is that the existing language implementations do not expose a powerful enough API to access things like the AST and program semantics. Eclipse has a Java compiler explicitly designed to interact with an IDE which makes it much easier to do things like advanced refactoring.
-
Dave over 13 yearsFantastic recommendation, and it worked for me (MacBook Pro) right out of the box. I had a lot of trouble with Swi-Prolog's built-in one.
-
Paulo Moura about 12 yearsDaniel, you may want to check e.g. PDT, available at sewiki.iai.uni-bonn.de/research/pdt/start
-
Leigh about 11 years@user2278330 - Welcome to Stack Overflow. If you have a question, please open a new thread, rather than modifying an existing answer. You can include a link to this response if its relevant.