Skip to content

Jawa Język Programowania / Jawa Programming Language

License

Notifications You must be signed in to change notification settings

peter-grajcar/jawa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A meme made by an unknown author. A hello world (witaj świecie) example program written in Jawa programming language.

(Unknown author)

Jawa

Jawa jest obiektowy język programowania. The Jawa programming language compiler was inspired by the meme above (author unknown).

Status

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.

Code Example

publiczna klasa WitajŚwiecie {
    
    publiczny statyczny void głowny(Łańcuch[] args) {
        System.wyjście.wydrukovać("Witaj świecie");
    }
    
}

Compiling the Sources

$ 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

Project Structure

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.

Compiling Jawa Programs

$ build/jawa/jawac --ścieżkaklasy .:stdbib test/WitajŚwiecie.jawa

Make sure you have compiled the standard library.

Running the Compiled Programs

You need to specify the standard library path and classpath:

$ java -Djava.library.path=build/stdbib -classpath stdbib:. WitajŚwiecie

References