khzouroussama / JVM-Simple-Lang

a small programming language that runs on the JVM and uses Quadruples as an intermediate Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JVM Simple Lang

a small programming language that runs on the JVM and uses Quadruples as an intermediate Code

exemple1

Technologies

this project is created with:

Symbole Table

exemple2

Quadruples

It is structure with consist of 4 fields namely op, arg1, arg2 and result. op denotes the operator and arg1 and arg2 denotes the two operands and result is used to store the result of the expression.

exemple3

Jasmin generated code

Jasmin is an assembler for the Java Virtual Machine. It takes ASCII descriptions of Java classes, written in a simple assembler-like syntax using the Java Virtual Machine instruction set. It converts them into binary Java class files, suitable for loading by a Java runtime system.

check http://jasmin.sourceforge.net/

exemple4

Examples

check the exemples folder

Note

tested only on Linux !

About

a small programming language that runs on the JVM and uses Quadruples as an intermediate Code

License:GNU Affero General Public License v3.0


Languages

Language:Java 70.1%Language:JavaScript 27.0%Language:Jasmin 1.5%Language:ANTLR 1.0%Language:Objective-J 0.4%Language:Shell 0.1%