init: Add Token definition and Tokenizer logic.

This commit is contained in:
Jooris Hadeler
2026-01-12 16:06:55 +01:00
commit 0599a5fb98
6 changed files with 378 additions and 0 deletions

8
example/main.bky Normal file
View File

@@ -0,0 +1,8 @@
/// This function computes the n-th value of the fibbonacci sequence.
fn fib(n: u64): u64 {
if n < 2 {
return n;
}
return fib(n - 1) + fib(n - 2);
}