working on parserlang

This commit is contained in:
herbglitch 2024-11-12 10:36:35 -07:00
parent b702431c88
commit fa0f9cd820
2 changed files with 16 additions and 14 deletions

View file

@ -131,6 +131,7 @@ if(ARCHEUS_STD_TESTS)
#tests/std/vector.c #tests/std/vector.c
tests/std/lexer.c tests/std/lexer.c
tests/std/parser.c tests/std/parser.c
tests/std/temp_parserlang.c
${ARCHEUS_STD_SOURCES} ${ARCHEUS_STD_SOURCES}
) )

View file

@ -155,17 +155,18 @@ ARC_TEST(Parser_Basic_ParseError){
arc_errno = 0; arc_errno = 0;
} }
ARC_TEST(Parser_ParserLang_BasicTest){ //ARC_TEST(Parser_ParserLang_BasicTest){
ARC_Parser *parser; // ARC_Parser *parser;
ARC_Parser_CreateAsParserLang(&parser); // ARC_Parser_CreateAsParserLang(&parser);
//
ARC_String *tempString; // ARC_String *tempString;
ARC_String_CreateWithStrlen(&tempString, "<test> -> <testingStuffs>\n"); // ARC_String_CreateWithStrlen(&tempString, "<test> -> <testingStuffs>\n");
//
//this destroys string, so no need for cleanup // //this destroys string, so no need for cleanup
ARC_Parser_Parse(parser, &tempString); // ARC_Parser_Parse(parser, &tempString);
//
ARC_Parser_Destroy(parser); // ARC_Parser_Destroy(parser);
//
ARC_CHECK(arc_errno == 0); // ARC_CHECK(arc_errno == 0);
} //}
//