summaryrefslogtreecommitdiff
path: root/code/main.felan
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-15 21:54:04 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-15 21:54:04 +0330
commitcc12a3a946303ae89ce2076b3c17d5d35d7e864f (patch)
tree3429c081fecb65cf538b213e382016416dbca344 /code/main.felan
parent52fac2c9232d39b3fe98438a47c22f985b260f58 (diff)
add string
Diffstat (limited to 'code/main.felan')
-rw-r--r--code/main.felan25
1 files changed, 6 insertions, 19 deletions
diff --git a/code/main.felan b/code/main.felan
index 15dbe68..23c774b 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -1,23 +1,10 @@
-ptr :: (t:type) -> type {
- return struct {
- address : u64;
- t :: t;
- };
-};
-
-array :: (t:type,length:u64)->type{
- return struct {
- ptr : *t;
- length :: length;
- };
-};
-
main :: () -> void {
- test : array(u64,@cast(8,u64)) = undefined;
- test2 : array(u64,@cast(8,u64)) = undefined;
- println(@typeOf(test) == @typeOf(test2));
- test.ptr = null;
- test.length;
+ a := "Hello world\n";
+ i := 0;
+ while i < 12 {
+ putc a[i];
+ i += 1;
+ }
};
print :: (value:[10]u8)->void{