Comment Comment by simcop2387 I'm curious how the parsing must work because I can't unambiguously see how this line is parsedfib x ← fib x − 1 + fib x − 2Why is that parsed to behave correctly likefib x ← fib (x − 1) + fib (x − 2)And not,fib x ← fib( x − 1 + fib ( x − 2 ))Or even this, though it wouldn't produce a sane programfib x ← fib ( x ) − 1 + fib ( x ) − 2 parent simcop2387 8 years ago
fib x ← fib x − 1 + fib x − 2
Why is that parsed to behave correctly like
fib x ← fib (x − 1) + fib (x − 2)
And not,
fib x ← fib( x − 1 + fib ( x − 2 ))
Or even this, though it wouldn't produce a sane program
fib x ← fib ( x ) − 1 + fib ( x ) − 2