harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 67de7c3e8553f1dc23a7b9d47ca595844e5e7a34
parent b28fe5aa427edb710a2aa4b0996e90ad61727dac
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Sat, 14 Nov 2020 17:00:23 -0500

lex: return an error on an unrecognized character

Diffstat:
Msrc/lex.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lex.c b/src/lex.c @@ -702,7 +702,8 @@ lex(struct lexer *lexer, struct token *out) out->token = T_SEMICOLON; break; default: - assert(0); // TODO: Operators + out->token = T_ERROR; + break; } return c;