rtforth 0.6.8

Forth implemented in Rust for realtime application
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* this was written by hand */

int fib(int n)
{
  if (n<2)
    return 1;
  else
    return fib(n-1)+fib(n-2);
}

main()
{
  printf("%d\n",fib(34));
  return 0;
};