All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ng.zoomba.lang.core.0.2.source-code.help.json Maven / Gradle / Ivy

Go to download

ZoomBA is a multi paradigm Micro Language for JVM Scripting used for business development and software testing

The newest version!
{
  "#atomic" : {
     "desc" : "atomic block",
     "syn" : "#atomic{ /* code here */ }" ,
     "samples" :  ["See url"],
     "url" : "https://gitlab.com/non.est.sacra/zoomba/blob/master/_wiki/08-Execution.md#atomic"
   },
  "assert" : {
    "desc" : "fire assertion when condition is false",
    "syn" : "assert ( condition, message ) " ,
    "samples" :  [ "assert(false,'I will crash!')" , "assert(1==1,'Tautology! will always pass!')" ],
    "url" : "https://gitlab.com/non.est.sacra/zoomba/blob/master/_wiki/03-Iteration.md#error-handling"
  },
  "panic" : {
    "desc" : "fire assertion when condition is true",
    "syn" : "panic ( condition, message ) " ,
    "samples" :  [ "panic(false,'I will not crash!')" , "panic(1==1,'Tautology! will always crash!')" ],
    "url" : "https://gitlab.com/non.est.sacra/zoomba/blob/master/_wiki/03-Iteration.md#error-handling"
  },
  "test" : {
    "desc" : "logs test pass/fail when condition is true/false",
    "syn" : "test ( condition, message ) " ,
    "samples" :  [ "test(1==1,'I will not be logged')", "test(0==1,'I will be logged!')" ],
    "url" : "https://gitlab.com/non.est.sacra/zoomba/blob/master/_wiki/03-Iteration.md#error-handling"
  },
  "async" : {
    "desc" : "execute block of code in asynchronous mode",
    "syn" : "async( handler ) -> { /* block */ } " ,
    "samples" :  [ "See url" ],
    "url" : "https://gitlab.com/non.est.sacra/zoomba/blob/master/_wiki/08-Execution.md#being-asynchronous"
  },
  "bool" : {
    "desc" : "casts object into boolean : true|false|null \n if fails, returns null or default",
    "syn" : "bool( object [, default ] ) | bool( object, [option_true, option_false] )" ,
    "samples" :  ["bool(true) // true ", "bool('none') // null" ],
    "url" : "https://gitlab.com/non.est.sacra/zoomba/blob/master/_wiki/02-types.md#logical"
  },
  "break" : {
    "desc" : "breaks iteration flow when expression is true",
    "syn" : "break [ ( expression ) [ { /* after executing body */ } ] ]" ,
    "samples" :  ["See url"],
    "url" : "https://gitlab.com/non.est.sacra/zoomba/blob/master/_wiki/03-Iteration.md#break-and-continue"
  },
  "bye" : {
    "desc" : "Exits ZoomBA system with messages",
    "syn" : "bye ( message1, message2,... )" ,
    "samples" :  [ "bye('I am going bye bye!')"],
    "url" : ""
  },
  ".md#clock" : {
    "desc" : "Clocks a ZoomBA block",
    "syn" : ".#( t, r ) = #clock { /* block */ }\n t is time in sec(double), r is the result of the block" ,
    "samples" :  ["#(t,o) = #clock{ for([0:10000]){ x = $ } } \n printf('Time: %f Output %s', t,o )"],
    "url" : "https://gitlab.com/non.est.sacra/zoomba/blob/master/_wiki/08-Execution.md#clocking-execution-time"
  },
  "case" : {
    "desc" : "See switch",
    "syn" : "case @$ | case 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy