Create header files and minimal .c stubs for the Sema pipeline: - intern_pool.h/c: InternPool types, pre-interned indices (0-123), SimpleType/SimpleValue enums, Key tagged union, init/deinit - air.h/c: AIR instruction tags (X-macro), Ref encoding (MSB tag), InstData union, extra payload structs, init/deinit - type.h/c: TypeIndex typedef, stub query functions - value.h/c: ValueIndex typedef, conversion functions - sema.h/c: Sema/Block/InstMap/Merges structs, init/deinit/analyze stubs Wire up build.zig and integrate sema step into zig0.c pipeline. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
354 B
C
17 lines
354 B
C
// value.h — Value wrapper, ported from src/Value.zig.
|
|
#ifndef _ZIG0_VALUE_H__
|
|
#define _ZIG0_VALUE_H__
|
|
|
|
#include "intern_pool.h"
|
|
#include "type.h"
|
|
|
|
typedef InternPoolIndex ValueIndex;
|
|
#define VALUE_NONE IP_INDEX_NONE
|
|
|
|
// --- Function declarations ---
|
|
|
|
TypeIndex valueToType(ValueIndex val);
|
|
ValueIndex valueFromInterned(InternPoolIndex index);
|
|
|
|
#endif
|