summaryrefslogtreecommitdiffstats
path: root/tests/std.jr
blob: eef8f94d35ef9ecc39e186e0c343b62f7bd40794 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// # current file: std.jr #
print(buffer: string) {
}

struct vec {

 x: int
  y: int

}

calculate_vector_length(vector: vec): f32 {


 // This is another comment
 // And this is one more

 while true {
  vec.x += 1
   vec.y += 1
 }


 print(vec.x)
  print(vec.y)

}