Emerald
Official webpage for Emerald.
How to innstall Emerald compiler and virtual machine:
Docker:
- Follow the guide for the portoleks/inf5510v18 image.
Mac:
- Download Mac-versjon
- Unpack the package to the location where you want to install emerald
(e.g., /opt - The package is then unpacked in the directory
emerald-PACKAGEVERSION under /opt) - Set EMERALDROOT in your environment to point to this directory (e.g.,
export EMERALDROOT=/opt/emerald )
Windows:
- Download Windows-version
- Created by Stig Halvorsen. ec that can be copied to bin directory! her
- Set the path environment variable, read the README in ec download for instructions.
Linux:
- Conceptually the same procedure as shown for mac, but because some problems with address space layout randomization some versions of linux want run the compiler. Feel free to try the mac-guide(it depends on which version of the linux kernel you run). Or you can download the 0.99 version of the compiler under here.
- Download Linux-version
Installing on Linux: (UIO user)
- There should be a .bashrc file in your home directory, add the following as in this example::
First type in : "gedit ~/.bashrc" in the terminal, eventually use whatever texteditor you want, but in this case I chose gedit! you first have to say where the emeraldroot path is, and add the given text below on your .bashrc file ! |
---|
- For making the changes in .bashrc file to take effect, either open a new terminal or write "source .bashrc"
Compiling and running:
- In bin directory the file emc is for compiling and emx is for launching a instance of the virtual machine.
Hvilken editor er god?:
- Det finnes en plugin for en eldre versjon av eclipse, med syntaksfremheving.
- Last ned plugin
- Last ned eclipse 3.0.1 Dette er hele installasjonspakken slik at du slipper ? m?tte installere hele eclipse p? nytt og unng?r likes? kr?ll.
- Legg emerald-plugin under /plugins katalogen i eclipse
- Start eclipse og new emerald project.
- Ellers er filendelsen p? emerald filer .m som i mange editorer blir oppfattet som objective c og gir en god syntaksfremheving av de mest brukte emerald n?kkelordene. Ellers er notepad++ en god og anbefalt editor.
Geany:
Geany is a IDE http://www.geany.org/
Here is a hack to get some syntax highlighting and snippets for emerald in geany.
We are going to replace pascal highlight whit Emerald.
Install geany
download filetypes.pascal , snippets.conf and filetype_extensions.conf
cp snippets.conf $HOME/.config/geany/snippets.conf
cp filetype_extensions.conf $HOME/.config/geany/filetype_extensions.conf
cp filetypes.pascal $HOME/.config/geany/filedefs/filetypes.pascal
Feel free to edit snippets.conf and filetypes.pascal to your own preferences.