implementation of useful error messages
This commit is contained in:
parent
2ce8200366
commit
c12e763b28
14 changed files with 295 additions and 68 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue