aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bytecode.c2
-rw-r--r--src/parser.c2
-rw-r--r--src/program.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 6f6e6aa..b7c0364 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -13,7 +13,7 @@ const char* tsl_opcode_to_string(TslOpcode opcode) {
case TSL_OPCODE_SETV: return "setv";
case TSL_OPCODE_LIST: return "list";
case TSL_OPCODE_MAP: return "map";
- case TSL_OPCODE_MINDEX: return "mindex";
+ case TSL_OPCODE_INDEX: return "index";
case TSL_OPCODE_CALLF: return "callf";
case TSL_OPCODE_ADD: return "add";
case TSL_OPCODE_SUB: return "sub";
diff --git a/src/parser.c b/src/parser.c
index 347e0de..e7fa99c 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -188,7 +188,7 @@ static TslParseResult tsl_parser_parse_var_indexing(TslParser *self) {
return_if_error(tsl_tokenizer_accept(&self->tokenizer, TSL_TOKEN_LBRACKET));
return_if_error(tsl_parser_parse_rhs(self));
return_if_error(tsl_tokenizer_accept(&self->tokenizer, TSL_TOKEN_RBRACKET));
- return tsl_bytecode_add_ins5(get_function_bytecode(self), TSL_OPCODE_MINDEX);
+ return tsl_bytecode_add_ins5(get_function_bytecode(self), TSL_OPCODE_INDEX);
}
/* FUNC_CALL = '(' (RHS ',')* ')' */
diff --git a/src/program.c b/src/program.c
index 030d5aa..7005c71 100644
--- a/src/program.c
+++ b/src/program.c
@@ -363,11 +363,11 @@ static TslProgramResult tsl_program_run_function(TslProgram *self, int function_
instruction += sizeof(TslInstructionType1);
break;
}
- case TSL_OPCODE_MINDEX: {
+ case TSL_OPCODE_INDEX: {
TslStackValue stack_value;
stack_value.type = TSL_STACK_VALUE_TYPE_INDEX;
cleanup_if_error(tsl_buffer_append(&self->stack_values, &stack_value, sizeof(stack_value)));
- /*printf("mindex\n");*/
+ /*printf("index\n");*/
instruction += sizeof(TslInstructionType5);
break;
}