Files
bucky/examples/fibonacci.bky
Jooris Hadeler a1ca2f2467 feat: Add token definitions and lexer logic.
This commit adds the `Token` and `TokenKind` definitions in `src/token.rs`,
in `src/lexer.rs` I've added the `Lexer` logic.
2026-03-11 23:18:05 +01:00

7 lines
101 B
Plaintext

fn fib(n: u64) -> u64 {
if n < 2 {
return n;
}
return fib(n - 1) + fib(n - 2);
}