Files @ 706db38f2849
Branch filter:

Location: CSY/reowolf/testdata/parser/counterexamples/definition_order.pdl

MH
Preparatory work for union literals

Contains horrible parsing hacks that transmute function calls and
enum literals to union literals if appropriate. Pending the
implementation of the tokenizer the AST can be constructed more
neatly.
#version 1
// My bad: C-ism of declarations on top

int call_me(int later) {
    return later;
}

int function() {
    int a = 2;
    int b = 3;

    int d = call_me(b); // succeeds, because of assignment
    call_me(b); // bare function call seems to work, unless we perform assignment afterwards

    int d = 5;

    return 2;
}