TegraExplorer/source/script/parser.h

15 lines
367 B
C
Raw Normal View History

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