diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-06 17:55:51 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-06 17:55:51 +0330 |
commit | aec4aa1ba09ea654cd02ff8281ee730d98fd3212 (patch) | |
tree | 08110ce950616acdad1fb2afe866fbee5fa85545 /code/main.felan | |
parent | a0988143abd3b725b4aaeea8262a6faa72753ee3 (diff) |
moving duplicated codes to functions
Diffstat (limited to 'code/main.felan')
-rw-r--r-- | code/main.felan | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/code/main.felan b/code/main.felan index 55e1252..e80b7fc 100644 --- a/code/main.felan +++ b/code/main.felan @@ -14,7 +14,7 @@ t :: (comptime formatter : string) macro -> string { in += 1; } else if c == '}' { in -= 1; - if in == 0{ + if in == 0 { return sub_string(formatter,opening,i); } else if in < 0 { in = 0; @@ -26,11 +26,8 @@ t :: (comptime formatter : string) macro -> string { }; main :: () -> void { - file.foo(); - a := '2'; - // @insert("a = '3';a = '5';"); - s :: t("hello {a = '6';}"); - @insert(s); - print_char(a); + arr :[10][]u8 = undefined; + arr[0] = "Hello"; + print(arr[0]); }; |