Added a LineEnd token type.

This commit is contained in:
2022-08-25 18:37:25 +00:00
parent 89ab951c6a
commit 64326937b1
3 changed files with 16 additions and 7 deletions
+2
View File
@@ -37,6 +37,8 @@ List* GenerateTokenList(const char* source) {
AdvanceScanner();
break; //Ignore whitespace
case '\n':
token = CreateToken("^", NULL, Line, LineEnd);
AddListItem(token, sizeof(Token), tokens);
AdvanceScanner();
Line++;
break;