make prettified terms unambiguous.

add parentheses to prettified applications to make their meaning
unambiguous.
This commit is contained in:
trans_soup 2023-11-07 00:25:34 +01:00
parent 6fb482df27
commit 7a50aa6e1e
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ function prettify (code) {
} else if (code[0] === 0) {
return "(λ" + prettify(code[1]) + ")";
} else {
return prettify(code[0]) + " " + prettify(code[1]);
return "(" + prettify(code[0]) + " " + prettify(code[1]) + ")";
}
}