got tags parsing in parserlang, though constants are still borked

This commit is contained in:
herbglitch 2024-12-02 18:34:19 -07:00
parent 16821e8411
commit c9a06e50ca
2 changed files with 111 additions and 28 deletions

View file

@ -201,6 +201,7 @@ ARC_TEST(Parser_Basic_GetParsedValue){
/* ~ parserlang tests ~ */
uint32_t TEST_ParserLang_GetIdFn(ARC_String *constant){
printf("tag: %s\n", constant->data);
return 0;
}
@ -209,7 +210,7 @@ ARC_TEST(Parser_ParserLang_BasicTest){
ARC_Parser_CreateAsParserLang(&parser, TEST_ParserLang_GetIdFn);
ARC_String *tempString;
ARC_String_CreateWithStrlen(&tempString, "<test> -> <testingStuffs>\n");
ARC_String_CreateWithStrlen(&tempString, "<test> -> CHAR <testingStuffs>\n");
//this destroys string, so no need for cleanup
ARC_Parser_Parse(parser, &tempString);