Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,7 @@
% Definitions
point = struct[x, y: int]
mutable_point = record[x, y: int]
% Initialization
p: point := point${x: 10, y: 20}
mp: mutable_point := mutable_point${x: 10, y: 20}

View file

@ -0,0 +1,2 @@
foo := p.x
bar := p.y

View file

@ -0,0 +1,2 @@
mp.x := 30
mp.y := 40

View file

@ -0,0 +1,2 @@
foo := point$get_x(p)
bar := point$get_y(p)

View file

@ -0,0 +1,2 @@
mutable_point$set_x(mp, 30)
mutable_point$set_y(mp, 40)