parser mostly fixed, still needs a lot more testing though, and need to store parsed values in a datatype

This commit is contained in:
herbglitch 2024-11-01 04:39:45 -06:00
parent 963b99c6bd
commit 006b4c63f7
5 changed files with 49 additions and 13 deletions

View file

@ -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
*