Files
ziran/bootstrap/compiler_parse/compiler_parse.h
T
waozi 4dc2da6b09 Publish measured desktop, Android and web target matrix
Compare five real examples across four targets on three measured platforms, preserving raw samples, independent output verification and artifact provenance.

Complete the WebAssembly support needed by the examples, inspect ZX bundles, prune generated C dependencies while preserving C++ linkage, and validate native script execution. Optimize only the temporary bootstrap seed and retain fresh-build measurements and historical benchmark records under bench/results.

Local tests: all 522 cases passed across the full run and corrected header-test rerun; all 16 bootstrap modules match. Playground runtime, bundle runtime, private browser layouts and matrix controls, published artifacts and local site links passed.
2026-11-10 23:50:12 -03:00

45 lines
1.0 KiB
C

/* Generated by zi2c from compiler_parse.zi. */
#ifndef ZIRAN_COMPILER_PARSE_H
#define ZIRAN_COMPILER_PARSE_H
#include <stdbool.h>
#include "zir_string_types.h"
#include "zir_slice.h"
#include "compiler_expression.h"
#include "compiler_ir.h"
#include "compiler_scan.h"
#include "compiler_services.h"
#include "compiler_text.h"
#include "compiler_type.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef ZIRAN_COMPILER_PARSE_H_PRIVATE
typedef struct Parser Parser;
#endif
#ifdef ZIRAN_COMPILER_PARSE_H_PRIVATE
struct Parser {
ZirFunction* fn;
ZirModule* module;
ZirSourceSpan span;
String source;
String expected_type;
int32_t stmt_index;
bool expand_defaults;
bool failed;
int32_t depth;
Scan token;
int64_t span_offset;
ZirSourceSpan span_cursor;
};
#endif
int32_t compiler_parse_ParseExpression(ZirFunction* fn, ZirModule* module, String text, ZirSourceSpan span, String expected_type, int32_t stmt_index, bool expand_defaults);
#ifdef __cplusplus
}
#endif
#endif /* ZIRAN_COMPILER_PARSE_H */