still working on parser, plan to rework to parsing first, then calling struct creation callback after with vector of tokens and tags
This commit is contained in:
parent
fcc07493d3
commit
d69844dab1
9 changed files with 251 additions and 27 deletions
|
|
@ -287,6 +287,10 @@ uint32_t ARC_Lexer_GetTokensSize(ARC_Lexer *lexer){
|
|||
return ARC_Vector_GetSize(lexer->tokens);
|
||||
}
|
||||
|
||||
ARC_Bool ARC_Lexer_IsContinious(ARC_Lexer *lexer){
|
||||
return lexer->tokenRulesAreContinuous;
|
||||
}
|
||||
|
||||
ARC_Bool ARC_Lexer_IsTokenId(ARC_Lexer *lexer, uint32_t id){
|
||||
//if the rules are continuous we can just check if it is less than the max rules value
|
||||
if(lexer->tokenRulesAreContinuous == ARC_True){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue