Fixed some bugs with the Scanner and Parser.

This commit is contained in:
2022-03-02 22:30:53 -06:00
parent 7bf7304bd4
commit d039a26c16
2 changed files with 16 additions and 11 deletions
+3 -3
View File
@@ -105,13 +105,13 @@ void ScanToken(TokenList* tokens) {
AddToTokenList(CreateToken(NULL, line, LParen), tokens);
break;
case ')':
AddToTokenList(CreateToken(NULL, line, LParen), tokens);
AddToTokenList(CreateToken(NULL, line, RParen), tokens);
break;
case '{':
AddToTokenList(CreateToken(NULL, line, LParen), tokens);
AddToTokenList(CreateToken(NULL, line, LBrace), tokens);
break;
case '}':
AddToTokenList(CreateToken(NULL, line, RParen), tokens);
AddToTokenList(CreateToken(NULL, line, RBrace), tokens);
break;
case ',':
AddToTokenList(CreateToken(NULL, line, Comma), tokens);