lexer added to documentation, and fixed alignment of some imports
This commit is contained in:
parent
a9a26ec122
commit
acde9dfe3c
17 changed files with 88 additions and 30 deletions
|
|
@ -51,7 +51,7 @@
|
|||
#define ARC_LEXER_TOKEN_PERCENT_CHAR '%'
|
||||
#define ARC_LEXER_TOKEN_PERCENT_TAG "PERCENT"
|
||||
|
||||
void ARC_Lexer_InitBasicTokenRules(ARC_Lexer *lexer){
|
||||
void ARC_Test_InitBasicLexerTokenRules(ARC_Lexer *lexer){
|
||||
//null
|
||||
ARC_Lexer_RegisterTokenRule(lexer, ARC_LexerTokenRule_CreateAndReturnMatchCharRule(ARC_LEXER_TOKEN_NULL, 0));
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ ARC_TEST(Lexer_Char_Match){
|
|||
ARC_Lexer *lexer;
|
||||
ARC_Lexer_Create(&lexer);
|
||||
|
||||
ARC_Lexer_InitBasicTokenRules(lexer);
|
||||
ARC_Test_InitBasicLexerTokenRules(lexer);
|
||||
|
||||
ARC_String *simple;
|
||||
ARC_String_CreateWithStrlen(&simple, "::{}!/.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue