Scan function

This commit is contained in:
Rafał Grodziński
2025-06-01 10:22:42 +09:00
parent 61e648e55b
commit 05e3def411
4 changed files with 82 additions and 17 deletions

View File

@@ -48,14 +48,18 @@ string Token::toString() {
return "LEFT_PAREN";
case RIGHT_PAREN:
return "RIGHT_PAREN";
case DOT:
return "DOT";
case COMMA:
return "COMMA";
case COLON:
return "COLON";
case SEMICOLON:
return "SEMICOLON";
case INTEGER:
return "INTEGER";
case IDENTIFIER:
return "IDENTIFIER";
case FUNCTION:
return "FUNCTION";
case RETURN:
return "RETURN";
case NEW_LINE:
return "NEW_LINE";
case END: