From 5c0fb009701e4c7451f49cdcd1958a2190a6c19a Mon Sep 17 00:00:00 2001 From: herbglitch Date: Thu, 14 Nov 2024 01:23:11 -0700 Subject: [PATCH] added some temporary debugging prints --- src/std/parser.c | 1 + tests/std/parser.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/std/parser.c b/src/std/parser.c index 75bb45c..d12d8fc 100644 --- a/src/std/parser.c +++ b/src/std/parser.c @@ -139,6 +139,7 @@ ARC_Bool ARC_Parser_ParseTag(ARC_Parser *parser, uint32_t *lexerIndex, uint32_t //if the token rule does not match the current token in the current or statement the token rule could not be found for the current or index so break if(token.rule != tag->tokensOrTags[orIndex][tokenOrTagIndex]){ foundRule = ARC_False; + printf("%u ", token.rule); break; } } diff --git a/tests/std/parser.c b/tests/std/parser.c index 34d7423..0c965aa 100644 --- a/tests/std/parser.c +++ b/tests/std/parser.c @@ -47,7 +47,7 @@ ARC_TEST(Parser_Init){ ARC_Parser_Destroy(parser); - ARC_CHECK(1 == 1); + ARC_CHECK(arc_errno == 0); } ARC_TEST(Parser_Basic_Parse){