Switch to build.sbt.
Adjust to changes in openregex.
Fix infinite recursion.
Update test cases.
Adjust to changes in openregex

Split parser out.