added option to run parser arbitrary times (fixes #31)