fix error in stop_errors and add debug term output

This commit is contained in:
hugogogo
2026-05-01 10:59:40 +02:00
parent 7519b8e615
commit 416d170ed2
5 changed files with 46 additions and 12 deletions

View File

@@ -11,6 +11,6 @@ typedef enum
ERROR_PARSING = -3,
} program_error;
int stop_errors(int err, char *details);
int stop_errors(int err, const char *details);
#endif

View File

@@ -10,12 +10,14 @@ typedef enum
{
TERM_LEFT, // a in "a = b"
TERM_RIGHT, // b in "a = b"
TERM_END, // last term
} term_position;
typedef enum
{
TERM_PLUS, // +
TERM_MINUS, // -
TERM_NULL, // null -> for the last term
} term_sign;
typedef struct