repos / gbc

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

gbc / tests
xplshn  ·  2025-09-10

case.bx

Bx
 1main() {
 2    extrn puts;
 3    x := 2;
 4    switch (x) {
 5        case 1:
 6            puts("one");
 7            break;
 8        case 2, 3:
 9            puts("two or three");
10            break;
11        default:
12            puts("other");
13    }
14    return(0);
15}