Skip to content

IxionLang/Ixion

Repository files navigation

The Ixion Programming Language

Multi-paradigm compiled programming language for the jvm platform.

Warning

The project is currently being rewritten from scratch. When it is 80% ready, it will be immediately uploaded to this repository

Important

Before installing the language, install jdk.

greeting in Ixion:

def greeting(steps : int){
    const langs = new String[]{
        "Hello, world!",
        "¡Hola Mundo!",
        "Γειά σου Κόσμε!",
        "Привет, мир!",
        "こんにちは世界!"
    };
    for(var i = 0; i < steps; i+=1){
        println(langs[i]);
    }
}

def main => greeting(2);

Note

The language contains nullable types and non-nullable types.

def main(args: String[]) {
   var a : String?;
   var b : String = "Hello";
}

java ArrayList example:

using java.util.ArrayList;

def main(args: String[]){
    var list = new ArrayList();

    list.add("Hello");
    list.add("World");

    for(var i = 0; i < list.size(); i++){
        println(list.get(i));
    }
}

Note

The language supports OOP.

Inheritance example:

class Human {
   var name: String = "";

   this(name: String) {
      this.name = name;
   }
   override def toString => "My name is " + name + ".";

}

class Man ext Human {
    var age : int;

    this(age: int) : ("Artyom") {
       this.age = age;
    }

    override def toString : String {
        var name : String = super.toString();
        return name + " My age is " + age + ".";
    }

}

def main {
   var simpleMan: Human = new Man(16);
   println(simpleMan);
}

Contributions

We will review and help with all reasonable pull requests as long as the guidelines below are met.

  • The license header must be applied to all java source code files.
  • IDE or system-related files should be added to the .gitignore, never committed in pull requests.
  • In general, check existing code to make sure your code matches relatively close to the code already in the project.
  • Favour readability over compactness.
  • If you need help, check out the Google Java Style Guide for a reference.

About

Ixion programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •