-
Notifications
You must be signed in to change notification settings - Fork 2
Getting started
The courses uses two different languages to explore three basic programming paradigms.
Mozart is used for the development of the object-oriented and functional programming sections of the course.
The Mozart development IDE is based on Emacs. In particular we Aquamacs throughout the course, together with the OZ run-time environment. We will be using Mozart version 2.0.0.
- Download aquamacs: http://aquamacs.org
- Download Oz: https://sourceforge.net/projects/mozart-oz/files/
You may need to create the symbolic links to aquamacs for it to work.
ln -s /Applications/"Aquamacs Emacs".app /Applications/Aquamacs.app
ln -s /Applications/"Aquamacs Emacs".app/Contents/MacOS/Aquamacs /Applications/Aquamacs.app/Contents/MacOS/"Aquamacs Emacs"
- Download Emacs (emacs-22.3-bin-i386): http://ftp.gnu.org/gnu/emacs/windows/
- Put the extracted directory to
C:\Program Files (x86)
- Change the name of the root directory to Emacs
- Change the name of the inner directory to emacs
- Download Oz: https://sourceforge.net/projects/mozart-oz/files/
- Add the OZ and Emacs environment Variables
- Go to
Control Panel\System and Security\System
and selectAdvanced system setting
- In
Environment Variables
set:-
OZEMACS
toC:\Program Files (x86)\Emacs\emacs\bin\runemacs.exe
-
- Go to
You may want to use the web version of the IDE https://www.tutorialspoint.com/compile_mozart-oz_online.php or https://www.jdoodle.com/compile-oz-mozart-online/
Alternatively, you may install the vscode-oz package for visual studio code
-
Ctrl . + e
-> Display the Emulator -
Ctrl . + c
-> Display the compiler console -
Ctrl . + Ctrl l
-> Execute the current line -
Ctrl . + Ctrl r
-> Execute the selected section -
Ctrl . + Ctrl b
-> Execute the complete buffer
Prolog is used for the logic programming section of the course
- Method 1: Download SWI (7.6.4): http://www.swi-prolog.org/download/stable
- Method 2:
- brew install swi-prolog
- use swipl from the terminal
- Method 3: install vsc-prolog plugin on VisualStudio Code.
- Download SWI (7.6.4): http://www.swi-prolog.org/download/stable
You may also use the web IDE at: https://swish.swi-prolog.org
Alternatively, you may install the prolog package for visual studio code