Skip to content

Instantly share code, notes, and snippets.

Created January 4, 2013 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8df7bba520c7f3a56ac3 to your computer and use it in GitHub Desktop.
Save anonymous/8df7bba520c7f3a56ac3 to your computer and use it in GitHub Desktop.
import scala.util.parsing.combinator._
val parsers = new RegexParsers {
def foo = "foo":Parser[String]
}
def run() {
val t = new Thread { override def run() { parsers.parseAll(parsers.foo, "bar") } }
t.start()
}
var i = 0
while(true) {
i += 1
if (i % 1000 == 0) { println(i) }
run()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment