/* Generated by zi2c from compiler_parse.zi. */ #ifndef ZIRAN_COMPILER_PARSE_H #define ZIRAN_COMPILER_PARSE_H #include #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 */