Skip to content

Commit

Permalink
🚧 WIP
Browse files Browse the repository at this point in the history
semver: chore
  • Loading branch information
Somfic committed Dec 30, 2024
1 parent 9b422e3 commit 2dde644
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ pub mod lexer;
pub mod parser;

const INPUT: &str = "
fn add(left ~ int, right ~ int) -> fn(int, int) -> int {
left + right
}
fn fib(n ~ int) -> int {
if n < 2 {
return n;
};
fn main() {
let a = 1;
let b = 2;
let c = add(a, b);
return fib(n - 1) + fib(n - 2);
}
";

Expand Down

0 comments on commit 2dde644

Please sign in to comment.