From 07e5fc400493093cd03493ef469b9b97fa1fe87a Mon Sep 17 00:00:00 2001
From: A404M <ahmadmahmoudiprogrammer@gmail.com>
Date: Thu, 24 Apr 2025 02:30:09 +0330
Subject: add @import

---
 code/main.felan | 43 +------------------------------------------
 1 file changed, 1 insertion(+), 42 deletions(-)

(limited to 'code')

diff --git a/code/main.felan b/code/main.felan
index 21557c6..de7eabb 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -1,48 +1,7 @@
-string :: []u8;
+@import("basic.felan");
 
 main :: () -> void {
   str := "123";
   print(str);
-  v := to_u64(str);
-  print(v);
-};
-
-print :: (value:[]u8)->void{
-  i :u64= 0;
-  while i < value.length {
-    putc value[i];
-    i += 1;
-  }
-};
-
-print :: (value:u64)->void{
-  value := value;
-  result :[20]u8 = undefined;
-  i := 0;
-  while {
-    result[i] = '0' + @cast(value % 10,u8);
-    i += 1;
-    value /= 10;
-    value != 0;
-  } {}
-
-  j := 0;
-  while j < i {
-    putc result[j];
-    j += 1;
-  }
-};
-
-to_u64 :: (value:string) -> u64 {
-  i :u64= 0;
-  result :u64= 0;
-
-  while i < value.length {
-    c := value[value.length-i-1];
-    result *= 10;
-    result += @cast(c - '0',u64);
-    i += 1;
-  }
-  return result;
 };
 
-- 
cgit v1.2.3