File splitting, object type
This commit is contained in:
parent
5313cc5603
commit
3f05fa5141
14 changed files with 194 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue