This commit is contained in:
nub31
2025-05-27 09:18:31 +02:00
parent cae1c03ed5
commit 2b666f168b
9 changed files with 347 additions and 284 deletions

5
example/math/math.nub Normal file
View File

@@ -0,0 +1,5 @@
namespace math
func add(a: i64, b: i64): i64 {
return a + b
}

View File

@@ -2,9 +2,11 @@ namespace main
/// # Documentation
/// ## Documentation subtitle
global func main(args: []string) {
export func main(args: []string) {
i = 0
x = math::add(1, 1)
c::printf("%d\n", args.count)
while i < args.count {