diff --git a/scripts/hello_world.toy b/scripts/hello_world.toy index 564a4f8..407cfa7 100644 --- a/scripts/hello_world.toy +++ b/scripts/hello_world.toy @@ -9,5 +9,4 @@ var b = 69; var c; var d; -//URGENT: reverse the assignment bytecode order c, d = swap(a, b); \ No newline at end of file diff --git a/source/toy_array.h b/source/toy_array.h index 47da53b..6c3c4a9 100644 --- a/source/toy_array.h +++ b/source/toy_array.h @@ -20,11 +20,3 @@ TOY_API Toy_Array* Toy_resizeArray(Toy_Array* array, unsigned int capacity); #ifndef TOY_ARRAY_EXPANSION_RATE #define TOY_ARRAY_EXPANSION_RATE 2 #endif - -//TODO: array.getLength() -//TODO: array.pushFront(x) -//TODO: array.pushBack(x) -//TODO: array.popFront() -//TODO: array.popBack() -//TODO: array.toString() - diff --git a/source/toy_vm.c b/source/toy_vm.c index c36b21a..d8a7c87 100644 --- a/source/toy_vm.c +++ b/source/toy_vm.c @@ -439,6 +439,15 @@ static void processAttribute(Toy_VM* vm) { //URGENT: type-based attributes Toy_pushStack(&vm->stack, TOY_VALUE_FROM_NULL()); //tmp + //string.length + //array.length + //array.pushFront(x) + //array.pushBack(x) + //array.popFront() + //array.popBack() + //array.toString() + //table etc. + //cleanup Toy_freeValue(value); Toy_freeValue(attribute);