got tags parsing in parserlang, though constants are still borked
This commit is contained in:
parent
16821e8411
commit
c9a06e50ca
2 changed files with 111 additions and 28 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue