renatomolina / krakatoa-compiler

This is my version of a compiler from a small language called krakatoa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

krakatoa_compiler

This is my own compiler from a small language called Krakatoa. The Krakatoa language is a subset of Java with a few additions/modifications. Krakatoa supports all the basic concepts of object-oriented programming such as classes, inheritance, and polymorphism.

Here is a simple piece of code of krakatoa

class A {
  private int i;      
  public int get() {
    return this.i;
  }
  
  public void put(int i) {
    this.i=i;
  }
}

class Program{
  public void run() {
    A object;
    int k;
    object = new A();
    object.put(5);         
    k = ();
    write(k);
  }
}

About

This is my version of a compiler from a small language called krakatoa

License:MIT License


Languages

Language:Java 100.0%