BareboneΒΆ

  • Create the YOUscript Instance
Instance ysi;
  • Load libaries like Math, String, etc
ysi.LoadDefaultLibaries();
  • In case you want to disable specific libaries, use
ysi.SetVar("Math", null) AFTER you ran ysi.LoadDefaultLibaries()
  • Run a simple string
ysi.DoString("hello world", "print(\"Hello there!\")");
  • Run a file!
ysi.DoFile("somefile.ys");