From db83cb7403e5d2e17ac2eb85c4a674aeb294ec47 Mon Sep 17 00:00:00 2001 From: Jesse Brault Date: Tue, 31 Dec 2024 17:23:03 -0600 Subject: [PATCH] Add basic sketch of needed core components for hello world. --- dm_std_lib/std/core/array.dm | 5 +++++ dm_std_lib/std/core/string.dm | 5 +++++ sketching/hello_world.dm | 1 + 3 files changed, 11 insertions(+) create mode 100644 dm_std_lib/std/core/array.dm create mode 100644 dm_std_lib/std/core/string.dm create mode 100644 sketching/hello_world.dm diff --git a/dm_std_lib/std/core/array.dm b/dm_std_lib/std/core/array.dm new file mode 100644 index 0000000..9ccb600 --- /dev/null +++ b/dm_std_lib/std/core/array.dm @@ -0,0 +1,5 @@ +ns std::core + +pub int Array + +impl ConstantByteArray(fld raw_address: USize, fld raw_size: USize) : Array diff --git a/dm_std_lib/std/core/string.dm b/dm_std_lib/std/core/string.dm new file mode 100644 index 0000000..6344807 --- /dev/null +++ b/dm_std_lib/std/core/string.dm @@ -0,0 +1,5 @@ +ns std::core + +pub int String + +impl StringImpl(fld bytes: Array) : String diff --git a/sketching/hello_world.dm b/sketching/hello_world.dm new file mode 100644 index 0000000..7987fa4 --- /dev/null +++ b/sketching/hello_world.dm @@ -0,0 +1 @@ +println "Hello, World!" \ No newline at end of file