parser mostly fixed, still needs a lot more testing though, and need to store parsed values in a datatype
This commit is contained in:
parent
963b99c6bd
commit
006b4c63f7
5 changed files with 49 additions and 13 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include "arc/std/parser.h"
|
||||
|
||||
//TODO: fix lambda
|
||||
#define LAMBDA 0
|
||||
#define LAMBDA ARC_PARSER_TAG_LAMBDA
|
||||
#define CHAR ARC_LEXER_TOKEN_ALPHALOWERCHAR
|
||||
#define NUM ARC_LEXER_TOKEN_NUMBER
|
||||
#define CHAR_OR_NUM 23
|
||||
|
|
@ -82,7 +82,8 @@ ARC_TEST(Parser_Basic_Parse){
|
|||
ARC_Parser_Create(&parser, &languageArray, TEST_Parser_InitLexerRulesFn);
|
||||
|
||||
ARC_String *tempString;
|
||||
ARC_String_CreateWithStrlen(&tempString, "myVar1");
|
||||
//ARC_String_CreateWithStrlen(&tempString, "myvar1");
|
||||
ARC_String_CreateWithStrlen(&tempString, "m");
|
||||
|
||||
//this destroys string, so no need for cleanup
|
||||
ARC_Parser_Parse(parser, &tempString);
|
||||
|
|
@ -119,6 +120,9 @@ ARC_TEST(Parser_Basic_ParseError){
|
|||
testTags //data
|
||||
};
|
||||
|
||||
//TODO: remove this
|
||||
arc_errno = 0;
|
||||
|
||||
ARC_Parser_Create(&parser, &languageArray, TEST_Parser_InitLexerRulesFn);
|
||||
|
||||
ARC_String *tempString;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue