Documentation update and commenting

This commit is contained in:
2025-10-04 12:08:57 +10:00
parent 44e8c673a0
commit 0bdcdcf126
6 changed files with 119 additions and 15 deletions

View File

@@ -44,6 +44,11 @@ std::vector<Instruction> parse(std::string program) {
continue;
}
// Ignore commented lines
if (line[0] == '#') {
continue;
}
if (line.rfind("if", 0) == 0) {
Instruction if_inst;
if_inst.instruction = InstructionType::If;