Skip to content

Basic Spark Program

dantheking-crypto edited this page Jul 7, 2021 · 4 revisions
main() {
 vars:
   int: a;
   real: b;
 def foo() -> #return type# int {
   program:
     print('My first function!');
 } -> #return value# 1
 program:
  a =  1*1+4//-2;
  print('The value of a: {a}');
  b = a - 0.5;
  print('The value of b: {b}');
}

Check out test.spark for more details!

Clone this wiki locally