From af19d8ef7283fc5db3e3c05328ca69e8b08d5287 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 20 Nov 2023 07:54:43 +0100 Subject: [PATCH] Added symbol to list of valid primary expressions --- src/ulas.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ulas.c b/src/ulas.c index c5b99a2..b4b9d2d 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -1045,8 +1045,7 @@ end: int ulas_parseprim(int *i) { struct ulas_tok *t = ulas_tokbufget(&ulas.toks, *i); - if (!t || (t->type != ULAS_INT && t->type != ULAS_STR)) { - printf("got type %d %c expected %d\n", t->type, t->type, ULAS_INT); + if (!t || (t->type != ULAS_INT && t->type != ULAS_STR && t->type != ULAS_SYMBOL)) { ULASERR("Primary expression expected\n"); return -1; } -- 2.30.2