Skip to content

Physs-0.1

Latest

Choose a tag to compare

@VuzZis VuzZis released this 25 Apr 09:56
· 7 commits to master since this release

Changes

  • Add MIT License
  • Add Functions and function declarations
  • Add Return statement
  • Add Exit statement
  • Add Lambda expression
  • Add Literal cast expression
  • Add basic OOP
  • Add Java class support
  • Add native packages: Math, Random
  • Add type: List

Showcase

Example code:

val a = in "Enter: ";
if(isNum(a)) out "Yes";
val b = a ~~ num;
if(b > 0) exit out "Yes";
val c = () -> {}
fn cc() {
     return "Yes";
}
object TestObject {
    instance(num) {
        this.num = num;
    }
}
val obj = TestObject(2);
out obj.num;

val list = List(3,2,1,5);
list.forEach(a -> out a);
importJavaClass("java.io.File");
val file = File("test.txt");
val math = Math();
val random = Random();
out math.sin(random.nextGaussian());

Full Changelog: 0.0...0.1