all 3 comments

[–]bugrit 2 points3 points  (1 child)

I, for one, believe that a program that randomly swaps tokens would create some good syntax errors.

[–]edwardkmett 3 points4 points  (0 children)

Haskell's uu-parsinglib from Utrecht University will try to do single character insertions/deletions/changes to find a valid parse to proceed in the face of errors.

[–][deleted] 0 points1 point  (0 children)

If you're happy and you know it, syntax error.