Haskell parser of pcgen rules