This commit is contained in:
nub31
2025-05-26 19:16:56 +02:00
parent 973d14ef29
commit 955869a3cf
18 changed files with 124 additions and 156 deletions

View File

@@ -1,3 +1,5 @@
module c_interop
extern func printf(fmt: string, ...args: any)
extern func getchar(): i32
extern func puts(str: string)

View File

@@ -1,12 +1,17 @@
import c
import c_interop
module main
/// # Documentation
/// ## Documentation subtitle
global func main(args: []string) {
i = 0
printf("%d\n", args.count)
while i < args.count {
printf("%s\n", args[i])
i = i + 1
}
}