Files
ziran/bootstrap/compiler_parse/compiler_parse.h
T

47 lines
1.1 KiB
C

/* Generated by zi2c from compiler_parse.zi. */
#ifndef ZIRAN_COMPILER_PARSE_H
#define ZIRAN_COMPILER_PARSE_H
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include "zir_slice.h"
#include "zir_string_types.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 */