-
-
Save anonymous/8df7bba520c7f3a56ac3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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