Branch
Hash :
c3f9fb70
Author :
Date :
2021-12-09T21:41:41
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
outer: while (true) {
while (true) {
break :outer;
}
}
fn eventuallyErrorSequence() anyerror!u32 {
return if (numbers_left == 0) error.ReachedZero else blk: {
numbers_left -= 1;
break :blk numbers_left;
};
}
----------------------------------------------------
[
["label", "outer"],
["punctuation", ":"],
["keyword", "while"],
["punctuation", "("],
["boolean", "true"],
["punctuation", ")"],
["punctuation", "{"],
["keyword", "while"],
["punctuation", "("],
["boolean", "true"],
["punctuation", ")"],
["punctuation", "{"],
["keyword", "break"],
["punctuation", ":"],
["label", "outer"],
["punctuation", ";"],
["punctuation", "}"],
["punctuation", "}"],
["keyword", "fn"],
["function", "eventuallyErrorSequence"],
["punctuation", "("],
["punctuation", ")"],
["class-name", [
["builtin-type", "anyerror"],
["operator", "!"],
["builtin-type", "u32"]
]],
["punctuation", "{"],
["keyword", "return"],
["keyword", "if"],
["punctuation", "("],
"numbers_left ",
["operator", "=="],
["number", "0"],
["punctuation", ")"],
["keyword", "error"],
["punctuation", "."],
"ReachedZero ",
["keyword", "else"],
["label", "blk"],
["punctuation", ":"],
["punctuation", "{"],
"\r\n\t\tnumbers_left ",
["operator", "-="],
["number", "1"],
["punctuation", ";"],
["keyword", "break"],
["punctuation", ":"],
["label", "blk"],
" numbers_left",
["punctuation", ";"],
["punctuation", "}"],
["punctuation", ";"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for labels.