diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-28 14:36:53 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-28 14:36:53 +0330 |
commit | fd03f34bc31c3764e8533e4fae9550d79a245301 (patch) | |
tree | e3ff7b3f662fed2ad81d882caf8b129fa0469733 | |
parent | 0d671d4364fa0db76fca6584a97c51de02b9e220 (diff) |
add basic README.md
-rw-r--r-- | README.md | 29 | ||||
-rw-r--r-- | code/main.felan | 2 |
2 files changed, 30 insertions, 1 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..1227e94 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Felan +A strongly statically typed programming language with a simple and friendly syntax + +# Why Felan? +* Easy to understand +* Powerful type system +* Compile time execution + +# Examples +## Hello world +``` +@import("basic.felan"); + +main :: () -> void { + print("Hello, world!"); +}; +``` +## Printing +``` +@import("basic.felan"); + +main :: () -> void { + b := 1234; + print(b); + a : i8 = 32; + print(a); + print("This is a string"); +}; +``` diff --git a/code/main.felan b/code/main.felan index 9f49f01..cdaeee8 100644 --- a/code/main.felan +++ b/code/main.felan @@ -25,7 +25,7 @@ Color :: struct { }; main :: ()->void{ - print(1236); + print("hello"); return; b := "raylib [core] example - basic window\0"; c := "Congrats! You created your first window!\0"; |