ScriptPro Language

ScriptPro

compiled into js
like TypeScript

.pro extensions


It has different syntax for 

assignment operator:

a - b -> a instead of a = a - b

and opening bracket ' { ' is missing

because it is assumed it there by default


pro a b -> euclid  // subroutine
     while b != 0   // '{' here by default
         if a > b    a - b -> a
         else  b - a -> b
     } // while
     return a
} // euclid

subroutine call   4 24 -> euclid

pro main // main subroutine

     in -> a b -> euclid -> out

     // combined input output

} // main

Comments

Popular posts from this blog

Hybrid Markup Language

Stream - Syntax-Oriented Language

iTeraTor Universal Data Language