implementation of useful error messages

This commit is contained in:
vegowotenks 2024-10-10 18:59:17 +02:00
parent 2ce8200366
commit c12e763b28
14 changed files with 295 additions and 68 deletions

View file

@ -11,7 +11,7 @@
typedef struct Interpreter_s Interpreter;
typedef int (*BuiltinFunction)(CallFrame *);
typedef int (*BuiltinFunction)(CallFrame *, Interpreter* interpreter);
struct Interpreter_s {
const char** builtin_names;
@ -29,4 +29,6 @@ int Interpreter_Create(Interpreter* self, DynamicArray* tokens);
int Interpreter_Interpret(Interpreter* self);
void Interpreter_Destroy(Interpreter* self);
Token* Interpreter_ExpectToken(Interpreter* self, CallFrame* top_frame, size_t stop_index);
#endif //FLUP_INTERPRETER_H