From f96589f50f6a5eaaed95e78db7c8749b7e304264 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 3 Mar 2026 00:21:50 +0100 Subject: Rename test file --- test.x | 33 --------------------------------- test.xy | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 33 deletions(-) delete mode 100644 test.x create mode 100644 test.xy diff --git a/test.x b/test.x deleted file mode 100644 index 8a5643e..0000000 --- a/test.x +++ /dev/null @@ -1,33 +0,0 @@ -def puts = $foreign("puts", func(s ^u8)); - -/* -def foo = func { - let my_string = - \ This is my line - \ this is a second line - \ etc. - ; - puts(my_string); -} -*/ - -/* def add = func(dst *vec($N), v, u vec($N)) - * $poke(operator.addeq) - * { - * loop (i: 0...N) - * dst[i] = v[i] + u[i]; - * }; */ - -def main′ = func { - puts("Hello, sailor!"); - some_func(#b10.1100'1001e+11); - slices_sort(my_slice, func(x, y int) int { - return x - y; - }); -}; - -def some_func = func(n u32) u32 { return n * 2; }; - -/* def MY_FLOAT = union { f f64; n u64; } { n = 0x482DEF }.f */ - -def main = func { main′(); }; diff --git a/test.xy b/test.xy new file mode 100644 index 0000000..e8809df --- /dev/null +++ b/test.xy @@ -0,0 +1,38 @@ +def puts = $foreign("puts", func(s ^u8)); + +/* +def foo = func { + let my_string = + \ This is my line + \ this is a second line + \ etc. + ; + puts(my_string); +} +*/ + +/* def add = func(dst *vec($N), v, u vec($N)) + * $poke(operator.addeq) + * { + * loop (i: 0...N) + * dst[i] = v[i] + u[i]; + * }; */ + +def main′ = func { + def foo, bar, baz; + puts("Hello, sailor!"); + 69 + ~420 + some_func(#b10.1100'1001e+11); + return 5 + slices_sort(my_slice, func(x, y int) int { + return x - y; + }); +}; + +69'420 - one; +def some_func = func(n u32) u32 { return n * 2; }; + +/* def MY_FLOAT = union { f f64; n u64; } { n = 0x482DEF }.f */ + +def main = func { main′(); }; + foobar -- cgit v1.2.3