Enhacnementsand toolchain

This commit is contained in:
allexanderbergmns
2026-08-24 15:35:11 +02:00
parent 8a4068631c
commit f77f9d4dff
19 changed files with 3071 additions and 45 deletions
+17
View File
@@ -0,0 +1,17 @@
// lib.vr — a small library compiled to its own object file.
// vr compile examples/lib.vr -o /tmp/lib.vobj
fn double(n) {
return n * 2
}
fn square(n) {
return n * n
}
fn describe(n) {
if n > 100 {
return "big"
}
return "small"
}