summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/lexer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/lexer.c b/core/lexer.c
index 53a418d..163e2f5 100644
--- a/core/lexer.c
+++ b/core/lexer.c
@@ -4,6 +4,7 @@
*/
#include <atas/lexer.h>
+#include <atas/trace.h>
#include <stdio.h>
#include <stdbool.h>
@@ -79,5 +80,7 @@ atas_lexer_scan(struct atas_state *state, struct atas_token *token)
return 0;
}
+ trace_fatal("unexpected token '%c' while scanning\n", c);
+ atas_fatal(state);
return -1;
}