From c3c19f3220485af12c3a5561ad1754bf546e7429 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 2 Sep 2017 15:48:01 +0200 Subject: Move *.lang files to a directory --- struct.lang | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 struct.lang (limited to 'struct.lang') diff --git a/struct.lang b/struct.lang deleted file mode 100644 index 00b3442..0000000 --- a/struct.lang +++ /dev/null @@ -1,34 +0,0 @@ -type S := struct { - int x; - char y; -}; - -S global := {x = 1, y = '!'}; - -func f(int iets1, S s, int iets2) { - putint(s.x); putc(s.y); putc('\n'); - putint(iets1); putc(' '); putint(iets2); putc('\n'); -} - -func int main() { - /*global.x = 3 * global.x + int(global.y); - putint(global.x + 1); putc(global.y); putc('\n'); - int a := getc(); - int b := getc(); - getc(); // newline - S ding := {x = 2*a, y = 'a'}; - // return ding.x; - f(123, ding, 456); - S ding2 := ding; - ding2.x = ding2.x; - // ding2.y = ding2.y; - f(234, ding2, 567); - return int(ding.y) + a + b;*/ - - int a := getc(); - getc(); // newline - S ding := {x = 2*a, y = 'a'}; - S ding2 := ding; - f(123, ding2, 456); - return 0; -} -- cgit v1.2.3-70-g09d2