aboutsummaryrefslogtreecommitdiff
path: root/code/main.felan
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-06-13 00:44:32 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-06-13 00:44:32 +0330
commit9abd643b6168ec3bf85ccc6d819162cdd799299b (patch)
tree9947316e2c8136ec1564a2033f0574ef49ef9e0a /code/main.felan
parent4dbad24963429bd63e7811621d7595a074a75cec (diff)
removing duplicated code
Diffstat (limited to 'code/main.felan')
-rw-r--r--code/main.felan28
1 files changed, 3 insertions, 25 deletions
diff --git a/code/main.felan b/code/main.felan
index b13442c..c146dce 100644
--- a/code/main.felan
+++ b/code/main.felan
@@ -1,33 +1,11 @@
-// @import("basic.felan");
+@import("basic.felan");
-/*
t :: (comptime b:u8) -> void {
print(b);
};
-*/
-
-__equal__ :: (a:u8,b:u8) -> bool {
- return @equal(a,b);
-};
-
-h :: (a:u8,b:u8) macro -> void {
- if a == 0u8 {
- if b == 0u8 {
- @putc('0');
- }else{
- @putc('1');
- }
- }else{
- @putc('2');
- }
-};
-
-f :: (a:u8,c:u8) -> u8 {
- @putc(c);
- return a;
-};
main :: () -> void {
- h(f(1u8,'a'),f(0u8,'b'));
+ a := 3u8;
+ t(2u8);
};