|
@@ -28,11 +28,11 @@ int main(int argc, char** argv) {
|
|
|
assert(strcmp("start", stmts[0]->label->name) == 0);
|
|
|
|
|
|
assert(stmts[1]->label == NULL);
|
|
|
- assert(stmts[1]->instr->op == ADD);
|
|
|
+ assert(stmts[1]->instr->op == OP_ADD);
|
|
|
assert(stmts[1]->instr->arg->ival == 1);
|
|
|
|
|
|
assert(strcmp("end", stmts[4]->label->name) == 0);
|
|
|
- assert(stmts[4]->instr->op == EQ);
|
|
|
+ assert(stmts[4]->instr->op == OP_EQ);
|
|
|
|
|
|
printf("[PASS] assembler parser\n");
|
|
|
deleteAllocator(alct);
|