docs: add example programs

- hello.bux: Hello World with PrintLine
- fibonacci.bux: Recursive Fibonacci with while loop
- factorial.bux: Recursive Factorial computation
- structs.bux: Struct creation and field access

All examples compile and run successfully via 'bux run'
This commit is contained in:
2026-05-30 23:04:33 +03:00
parent bbb7e60042
commit 3b03d43dd1
4 changed files with 86 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
// Hello World - Basic Bux program
extern func Std_Io_PrintLine(s: String);
func Main() -> int {
Std_Io_PrintLine("Hello, Bux!");
return 0;
}