language

some fools attempt at an interpreted language
Log | Files | Refs | README

example.ti (160B)


      1 class Bar:
      2 {
      3 	int lala = 2;
      4 }
      5 
      6 func main(Bar arg) -> void:
      7 {
      8 	print arg.lala;
      9 }
     10 
     11 var foo = new Bar();
     12 print "Calling main()";
     13 main(foo);
     14 print "Called main()";