From 5cb3d6896f7c473a7fc66408114db4511fd9504c Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 18 Mar 2020 00:33:07 -0700 Subject: token: Handle TEOF in tokendesc --- token.c | 1 + 1 file changed, 1 insertion(+) diff --git a/token.c b/token.c index b3673a8..0fe306f 100644 --- a/token.c +++ b/token.c @@ -146,6 +146,7 @@ tokendesc(char *buf, size_t len, enum tokenkind kind, const char *lit) bool quote; switch (kind) { + case TEOF: class = "EOF"; break; case TIDENT: class = "identifier"; quote = true; break; case TNUMBER: class = "number"; quote = true; break; case TCHARCONST: class = "character"; quote = false; break; -- cgit v1.2.3