Skip to content

Instantly share code, notes, and snippets.

@realbot
Created March 23, 2010 15:50
Show Gist options
  • Save realbot/341318 to your computer and use it in GitHub Desktop.
Save realbot/341318 to your computer and use it in GitHub Desktop.
object ScalaBasicRunner extends Baysick with Application {
10 PRINT "Scala"
20 LET ('number := 1)
30 IF 'number > 0 THEN 50
40 PRINT "Java"
50 PRINT "rulez!"
60 END
RUN
}
20 LET ('number := 1)
LineBuilder(20).LET(Assignment('number).:=(1))
LineBuilder(20).LET((() => binds.set('number, 1)))
lines(20) = Let(20, (() => binds.set('number, 1)))
private def gotoLine(line: Int) {
lines(line) match {
case PrintNumber(_, number:BigInt) => {
println(number)
gotoLine(line + 10)
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment