Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/basveeling/vertalerbouw

Vertalerbouw eindopdracht
https://github.com/basveeling/vertalerbouw

Last synced: 9 days ago
JSON representation

Vertalerbouw eindopdracht

Awesome Lists containing this project

README

        

Stil
==============
##Simple and Tranquil Imperative Language

### Compilation
Compiling is done with ANT. Make sure this is installed by following the steps on http://ant.apache.org/manual/install.html

Open a shell in the root directory of the stil project and run:
```
$ ant
```

The attached shell/batch scripts make use of a JAR file. This can be (re)created by running:
```
$ ant -f buildjar.xml
```

### Running tests
STIL includes two sets of tests: GUnit for gramatical tests and a custom code generation testing framework.
Running GUnit tests:
__OSX/UNIX:__
```
$ cd bin
$ java -cp ../classpath/antlr.jar:. org.antlr.gunit.Interp ../gunit/Stil.gunit
$ java -cp ../classpath/antlr.jar:. org.antlr.gunit.Interp ../gunit/StilChecker.gunit
$ cd ..
```
__Windows:__
```
$ cd bin
$ java -cp ..\classpath\*;. org.antlr.gunit.Interp ..\gunit\Stil.gunit
$ java -cp ..\classpath\*;. org.antlr.gunit.Interp ..\gunit\StilChecker.gunit
$ cd ..
```
Running input/output tests:
__OSX/UNIX:__
```
$ ./output_test.sh
```
__Windows:__
The input/output test framework is restricted to Unix operating systems.
### Compiling and Running Stil Programs
A still program consists of one .st file. This is compiled to a jasmin .j file which in turn is assembled to a class file (both stored in the gen/ folder).

Compilation and running is done by editing program.st in the root directory and running:

__OSX/UNIX:__
```
$ ./buildprogram.sh
$ ./runprogram.sh
```
__Windows:__
```
$ buildprogram.bat
$ runprogram.bat
```