From ab7f648e564e7e061f5a1355ca65fc0e8a962a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Tue, 11 Jun 2024 16:06:47 +0500 Subject: [PATCH] Notify of unknown keywords --- src/compile.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/compile.c b/src/compile.c index 74fcb14..50fd27a 100644 --- a/src/compile.c +++ b/src/compile.c @@ -302,6 +302,13 @@ char* compile(tSyntaxElement* syntaxtree) { string_append(&result,compile_expression(token->next)); string_append(&result, "}}"); + } else { + + string_append(&result, "{#"); + string_append(&result, "Unknown keyword: "); + string_append(&result, token->content.string); + string_append(&result, "#}"); + } }