From d147de2d7f246c70d0e77d55d54270c5cb034f20 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Fri, 12 Mar 2021 19:42:18 +0900 Subject: [PATCH] Let the scanner attempt to continue when unget() was called twice --- src/scanner.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index e24864d..080b1f9 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -271,7 +271,6 @@ static KrkToken identifier() { void krk_ungetToken(KrkToken token) { if (scanner.hasUnget) { fprintf(stderr, "(internal error) Tried to unget multiple times, this is not valid.\n"); - exit(1); } scanner.hasUnget = 1; scanner.unget = token;