2021-07-09 21:56:13 +01:00
|
|
|
|
2020-12-28 13:51:59 +00:00
|
|
|
#pragma once
|
2021-07-09 21:56:13 +01:00
|
|
|
#include "compat.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Function_t main;
|
|
|
|
Vector_t staticVarHolder;
|
|
|
|
u8 valid;
|
|
|
|
} ParserRet_t;
|
2020-12-28 13:51:59 +00:00
|
|
|
|
2021-07-09 21:56:13 +01:00
|
|
|
#define SCRIPT_PARSER_ERR(message, ...) printScriptError(SCRIPT_PARSER_FATAL, message, ##__VA_ARGS__); return (ParserRet_t){0}
|
2020-12-28 13:51:59 +00:00
|
|
|
|
2021-07-09 21:56:13 +01:00
|
|
|
void exitStaticVars(Vector_t* v);
|
2021-07-18 22:51:27 +01:00
|
|
|
void exitFunction(Operator_t* start, u32 len);
|
|
|
|
ParserRet_t parseScript(char* in, u32 len);
|