Skip to content

Instantly share code, notes, and snippets.

@Wafelack
Created October 7, 2020 11:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wafelack/2ddd0be7baec8d77503ea66f709552c8 to your computer and use it in GitHub Desktop.
Save Wafelack/2ddd0be7baec8d77503ea66f709552c8 to your computer and use it in GitHub Desktop.
wscript language syntax
fun foo(a: number, b: string) : string => {
    var moo = b, ": ", a;
    return moo;
}
$ Some comment
var titi = 0; $ number
for i (0;55;1) {
   moo += i;
}
var somebool = true; $ bool
var somechar = 'a'; $ char
var sometuple: (number, number) = (5,12); $ tuple
var array[5]: number = [3,4,5,1,3]; $ array
var vec: Vec(string) = {5}; $ vector
vec.push(5); $ vector with 5 and 5
vec.pop(); $ vector with 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment