peter-grajcar / jawa

Jawa Język Programowania / Jawa Programming Language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Jawa Język Programowania / Jawa Programming Language

License:Mozilla Public License 2.0


Languages

Language:C++ 73.8%Language:Yacc 17.7%Language:Lex 4.7%Language:CMake 1.7%Language:Vim Script 1.6%Language:Shell 0.5%