File splitting, object type

This commit is contained in:
vegowotenks 2024-10-10 15:54:22 +02:00
parent 5313cc5603
commit 3f05fa5141
14 changed files with 194 additions and 15 deletions

View file

@ -478,6 +478,10 @@ int Interpreter_ExecuteNext(Interpreter* self, size_t stop_token)
break;
}
case TOKENTYPE_COMMENT:
top_frame->instruction_pointer++;
break;
case TOKENTYPE_PIPE:
case TOKENTYPE_SEMICOLON:
case TOKENTYPE_LEFT_BRACE:
@ -494,6 +498,7 @@ int Interpreter_ExecuteNext(Interpreter* self, size_t stop_token)
case TOKENTYPE_COMMA:
case TOKENTYPE_LEFT_PAREN:
case TOKENTYPE_RIGHT_PAREN:
case TOKENTYPE_STRING:
fprintf(stderr, "Unexpected token with type: %s, continuing with next token...\n", TokenType_ToString(t->type));
top_frame->instruction_pointer++;
break;