mirror of
https://github.com/anoma/juvix.git
synced 2024-12-03 09:41:10 +03:00
8e5f45f16f
This makes the syntax more uniform. It was especially confusing with nested branching, where some closing braces had to and others couldn't be followed by a semicolon. Now all have to be followed by a semicolon (except function ending braces).
11 lines
140 B
Plaintext
11 lines
140 B
Plaintext
-- branch stack height mismatch
|
|
|
|
function main() {
|
|
push true;
|
|
br {
|
|
true: { push 1; push 2; };
|
|
false: { push 1; };
|
|
};
|
|
ret;
|
|
}
|