AlphaZ has been only tested on 64 bit Linux and MacOS. There are several options that can be used to get a working eclipse instance with AlphaZ installed.
You must be a CSU student with access to the CS deparment machines to do this. An eclipse environment with all necessary plug-ins is available in the AlphaZ project directory. Run the following in a bash terminal to add the AlphaZ project directory to your path:
echo 'export PATH=/s/chopin/h/proj/AlphaZ/bin:$PATH' >> ~/.bashrc source ~/.bashrc
Then launch Eclipse with the following command:
Alternatively, you can install eclipse on your own machine and manually install the AlphaZ plugins directly.
See the README in the AlphaZ git repo:
To get started with AlphaZ, a Java plug-in project with examples can be checked out from our repository. From Eclipse, do the following:
Projects from Git> click
Clone URI> click
Nextand follow the prompts with defaults until you reach the “Import Projects” step
Deselect All> select the
edu.csu.melange.alphabets.examplesproject from the list > click
edu.csu.melange.alphabets.examples project, you will find four directories:
ValidationTutorial. Alphabets is the programming language for programming in equations (with extension .ab), and CompilerScripts (.cs) are script files to use the scripting interface of AlphaZ.
BasicScript.cs in the
CommandScripts directory to make sure that the system is working on your machine (right click
Run as >
ReadAlphabets loads .ab files and parses it to get a
Objects returned by commands and strings/integers can be stored in untyped variables.
PrintAST are all commands to print out the program in different formats.
generateXXX commands takes the program and generates executable C code.
Check the following if something does not work