CSpydr is a programming language created in 2021 by Spydr06.
#1477on PLDB | 3Years Old |
git clone https://github.com/spydr06/cspydr
A static typed low-level compiled programming language inspired by Rust and C
# fibonacci.csp
import "io.csp";
fn fib(n: i32): i32 {
let a = 0;
let b = 0;
for 0 .. n {
a + b |> (a = b, b = $);
}
<- a;
}
fn main(): i32 {
let n = 10;
std::io::printf("fib(%i) = %i\n", n, fib(n));
<- 0;
}