repos / gbc

GBC - Go B Compiler
git clone https://github.com/xplshn/gbc.git

gbc / tests
xplshn  ·  2025-08-13

unary_priority.b

B
1main() {
2    extrn printf;
3    // It is important for the unary "not" to be applied to the nearest "0",
4    // not to the whole "0 + 68". If the parser is implemented correctly the
5    // output of this program is 69.
6    printf("%d\n", !0 + 68);
7}