avoid reassigning variables

This commit is contained in:
Sami Mäkelä 2017-08-16 13:29:12 +03:00 committed by Alex Beregszaszi
parent 16f8187166
commit a4310fec55

View File

@ -254,9 +254,9 @@ We will use a destructuring notation for the AST nodes.
let G0, L0, v = E(G, L, condition)
// i = 1 .. n
// Evaluate literals, context doesn't matter
let G0, L0, v1 = E(G0, L0, l1)
let _, _, v1 = E(G0, L0, l1)
...
let G0, L0, vn = E(G0, L0, ln)
let _, _, vn = E(G0, L0, ln)
if there exists smallest i such that vi = v:
E(G0, L0, sti)
else: