Skip to content

Commit

Permalink
Implement function of next and break
Browse files Browse the repository at this point in the history
  • Loading branch information
KajizukaTaichi committed Jul 27, 2024
1 parent bc83775 commit 1ea75d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ fn parse_program(source: String) -> Block {
program.push(Instruction::Comment(code[2..code.len()].trim().to_string()))
} else if code.starts_with("import") {
program.push(Instruction::Import(code[6..code.len()].trim().to_string()))
} else if code == "next" {
program.push(Instruction::Continue)
} else if code == "break" {
program.push(Instruction::Break)
}
}
program
Expand Down

0 comments on commit 1ea75d1

Please sign in to comment.