| 6 | } |
| 7 | |
| 8 | bool Instruction::compileToVirtualInstructions() |
| 9 | { |
| 10 | // generate the corrosponding virtual instructions |
| 11 | if (!VM::compileInstructionToVirtualInstructions(this)) |
| 12 | { |
| 13 | std::cerr << "error compiling instruction" << std::endl; |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | return 1; |
| 18 | } |
| 19 | |
| 20 | void Instruction::addVirtualInstruction(VirtualInstruction virtualInstruction) { virtualInstructions.push_back(virtualInstruction); } |
| 21 |
no test coverage detected