Skip to content

Instantly share code, notes, and snippets.

@tpolecat
Created April 2, 2013 15:48
Show Gist options
  • Save tpolecat/5293282 to your computer and use it in GitHub Desktop.
Save tpolecat/5293282 to your computer and use it in GitHub Desktop.
package org.tpolecat.basic
object Test extends App {
val count = new BASIC {
10 FOR I IN 1 TO 2
15 FOR J IN 1 TO 3
20 GOSUB 100
25 NEXT J
30 NEXT I
40 END
100 PRINT "Current values:"
102 PRINT I
105 PRINT J
110 RETURN
}
count()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment