From: Lukas Krickl Date: Mon, 20 Nov 2023 06:54:43 +0000 (+0100) Subject: Added symbol to list of valid primary expressions X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=af19d8ef7283fc5db3e3c05328ca69e8b08d5287;p=ulas%2F.git Added symbol to list of valid primary expressions --- 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; }