Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basveeling/vertalerbouw
Vertalerbouw eindopdracht
https://github.com/basveeling/vertalerbouw
Last synced: 6 days ago
JSON representation
Vertalerbouw eindopdracht
- Host: GitHub
- URL: https://github.com/basveeling/vertalerbouw
- Owner: basveeling
- Created: 2014-05-27T12:06:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-09T14:29:14.000Z (over 10 years ago)
- Last Synced: 2024-10-30T00:36:17.120Z (about 2 months ago)
- Language: Java
- Size: 10.3 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.htmlOpen 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
```