Files @ 031c9d14adaa
Branch filter:

Location: CSY/reowolf/testdata/parser/counterexamples/import_bad_reporting.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.
// Bad reporting of EOF. Also main parser loop would be fine if pragmas, imports
// and declarations are mixed. Maybe force pragmas at top for readability...

#version 1

composite main() {}

#version 2

composite another() {}