To make this specific, Fibonacci would be a great example
etn fire
fn fib n
< lessThan1 n 1
if lessThan1
return 0
<= lessOr2 n 2
if lessOr2
return 1
- oneLess n 1
- twoLess n 2
call oneLessFib fib oneLess
call twoLessFib fib twoLess
+ sum oneLessFib twoLessFib
return sum
call result fib 10http://breckyunits.com/files/ohayo.png
> If so couldn't you just use an existing programming language with the editor? Why create a new language?
No. Because with all existing languages, to have machines and humans coauthor code has proved impossible. We needed TN and ETNs to enable this: one right way to write programs. With ETNs, humans can write code that machines can easily work with, and vice versa.
That being said, using it for a few minutes is more than enough to get where this is going.
I have no idea what I'm looking at. This could be a code editor, a debugger, a plain code listing. No. Idea.
fib 0 = 0
fib 1 = 1
fib n = fib (n-1) + fib (n-2)