mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 21:21:33 +00:00
vm: very basic virtual machine
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
let count = 5
|
||||
|
||||
export func main() {
|
||||
var x = 1
|
||||
while x <= count {
|
||||
println(x)
|
||||
while x <= 5 {
|
||||
if x == 3 {
|
||||
println("The value is 3")
|
||||
} else {
|
||||
println("The value is not 3")
|
||||
}
|
||||
x++
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user