Files @ 031c9d14adaa
Branch filter:

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

MH
Merge branch 'feat-bytecode'

Adds size/alignment/offset computations to the type system and detects
potentially infinite types. If the type is potentially infinite but
contains a union that can break that type loop, then all other variants
of that union are supposed to be allocated on the heap. If the type
is potentially infinite but cannot be broken up, then we throw the
appropriate error.

The size/alignment/offset computations are not yet employed in the
runtime. But prepares Reowolf for a proper bytecode/IR implementation.
#version 1

int check_integer_specs() {
    int a = 0xFF;
    // no octal support, but thats fine
    int b = 0xxxxFF;
    int c = 0x1x2X3x4X5x6X7x8X; // Wut
    int d = 1FF;
    return a;
}