gallais / idris-tparsec

TParsec - Total Parser Combinators in Idris
https://gallais.github.io/idris-tparsec/
GNU General Public License v3.0
93 stars 10 forks source link

[ fix ] Unstick computation in tests. Ambig and STLCpos are working. #45

Closed dunhamsteve closed 1 year ago

dunhamsteve commented 1 year ago

Needs `Data.List1.foldr1 and Data.List1.foldr1By to be public. (See: idris-lang/Idris2#3041)

With this PR all of the files are compiling. Some of the examples seem to take forever, but I've unblocked any stuck functions. The example files Ambig.idr and STLCpos.idr are completing with the tests uncommented. The latter takes about four seconds to run.

I'm not sure why STLC.idr has different behavior from STLCpos.idr. (STLC doesn't finish with a test uncommented.)

dunhamsteve commented 1 year ago

Sorry for the deluge of PRs - I was on vacation and had some spare time to hack on things.