diff options
-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"; |