Skip to content

IxionLang/Ixion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Ixion Programming Language

Multi-paradigm compiled programming language for the jvm platform.

Important

Before installing the language, install jdk.

Hello World in Ixion:

def main => println("Hello World");

or:

def main(args: String[]) {
   println("Hello World");
}

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