mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2026-11-04 16:02:20 +00:00
vm: very basic virtual machine
This commit is contained in:
92 files changed
+1652
-243
No files matched your search
+6
-4
@@ -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