How to build Prolog using Sublime Text 2
Step 1: Install SWI-Prolog
- Check if SWI-Prolog is already installed on your computer.
- Install SWI-Prolog if it's not already installed: http://www.swi-prolog.org/download/stable
Step 2: Install Sublime Package Manager http://duke-pl-course.github.io/blog/2013/01/15/setting-up-sublime-text-2/
Step 3: Install Prolog Package for Sublime http://duke-pl-course.github.io/blog/2013/01/15/setting-up-sublime-text-2/
Here's an example on how to build SWI-Prolog in Sublime: http://stackoverflow.com/questions/19647851/swi-prolog-plugin-on-sublime-build-error
Tutorial for SWI-Prolog http://www.doc.gold.ac.uk/~mas02gw/prolog_tutorial/prologpages/index.html#menu
Tutorial on definite clause grammar in SWI-Prolog http://www.pathwayslms.com/swipltuts/dcg/
Notes:
- Sublime considers files with the extension '.pl' as Perl files. So you'll need to click on 'Perl' on the bottom right of sublime and change it to 'SWI-Prolog'.