Here I have put some information about my experiments with Peter Broadberys Eclipse development environment for Aldor. This is a set of eclipse plugins for developing aldor code.
To install this environment:
|Unzip to a local directory (I just left it set to aldor-eclipse.0.0.3).|
|Start eclipse, goto Help/Install new software|
Click on Add (near top right corner), then Add a local repository, Location is where you unpacked the files earlier.
May need to unselect the 'list items by category' option.
|Set "Work with" to the newly added rep (if it hasn't defaulted to it)|
|You may need to unselect 'Group Items by Category'|
|Pick aldor from the list.. If there is two, pick both.|
Click install, and work through the various prompts.
Creating a project:
This will prompt for a name, and then create an empty project. If the aldor plugin is installed, there should be a 'Configure/Add Aldor Nature' item (or similar).. add this,
right-click on "filename" and click "Configure --> Enable Aldor builder".
goto the menu "Project --> Properties" and set the "Aldor Location".
then create an .as file in your project.
- Install the plug in (the 'aldor' project contains the 'Aldor' feature).
- Create a new project
- Do 'Configure/Enable Aldor Builder' from the project's context menu.
- Go to project properties and set the location of your aldor executable.
- Create a .as file and edit away. The file will be built every time you save the file.
- Use 'Run As...' on the context menu to execute an aldor program.
Compilation errors are displayed in the 'Problems' view. All aldor output (including errors) is sent to the console tab.
|I entered this program which is the first from the Aldor sample programs:||
1 2 3
#include "aldor" double(n: Integer): Integer == n + n
This gave the following errors in the console tab:
[AO] /home/martin/aldorbinary/bin/aldor -laldor=aldor-generated/ao/libaldor_test.al -Fao=aldor-generated/ao/test.ao /home/martin/workspace/aldor/test.as /home/martin/aldorbinary/bin/aldor -laldor=aldor-generated/ao/libaldor_test.al -Fao=aldor-generated/ao/test.ao /home/martin/workspace/aldor/test.as #1 (Warning) Could not use archive file `aldor-generated/ao/libaldor_test.al'. #2 (Warning) Could not open file `aldor-generated/ao/libaldor_test.al'.
No issues in the 'Problems' tab: