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
|
|
@ -99,6 +99,15 @@ void ARC_Lexer_LexString(ARC_Lexer *lexer, ARC_String **data);
|
|||
*/
|
||||
void ARC_Lexer_LexFile(ARC_Lexer *lexer, ARC_String *path);
|
||||
|
||||
/**
|
||||
* @brief prints rule id and hex of the function name
|
||||
*
|
||||
* @note this is mostly used for debugging
|
||||
*
|
||||
* @param[in] lexer the lexer to print rules from
|
||||
*/
|
||||
void ARC_Lexer_PrintTokenRules(ARC_Lexer *lexer);
|
||||
|
||||
/**
|
||||
* @brief gets a token at a given index from a lexer
|
||||
*
|
||||
|
|
|
|||
|
|
@ -90,6 +90,11 @@ void ARC_Parser_Parse(ARC_Parser *parser, ARC_String **data);
|
|||
*/
|
||||
void ARC_Parser_ParseFile(ARC_Parser *parser, ARC_String *path);
|
||||
|
||||
/**
|
||||
* @brief basic tag for letting the parser know it is ok to end
|
||||
*/
|
||||
#define ARC_PARSER_TAG_LAMBDA 0
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue