(Unknown author)
Jawa jest obiektowy język programowania. The Jawa programming language compiler was inspired by the meme above (author unknown).
The compiler is incomplete and it contains a few ad-hoc solutions. However, WitajŚwiecie (HelloWorld) program can be compiled as well as the necessary standard library.
publiczna klasa WitajŚwiecie {
publiczny statyczny void głowny(Łańcuch[] args) {
System.wyjście.wydrukovać("Witaj świecie");
}
}
$ mkdir build
$ cd build
$ cmake -DBISON_ROOT=<bison_install_dir> -DFLEX_ROOT=<flex_install_dir> ..
Jawa compiler:
$ make jawac
Jawa standard library:
$ make jawa_stdbib
jasm
is a low-level library for JVM byte code manipulation.
jawa
is a Jawa compiler implemented using jasm
.
stdbib
contains sources of the Jawa standard library (standardowa biblioteka).
editor
contains plugins for supported code editors.
$ build/jawa/jawac --ścieżkaklasy .:stdbib test/WitajŚwiecie.jawa
Make sure you have compiled the standard library.
You need to specify the standard library path and classpath:
$ java -Djava.library.path=build/stdbib -classpath stdbib:. WitajŚwiecie
- Jasmin - JVM assembler
- Java Grammar
- Java Class File Format
- JVM Instruction Set
- Java SableCC Grammar (Not suitable for Bison)
- Java LALR(1) Grammar (Old version of Java)