Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Ok, the point of this huge exercise was simply to convince myself I understood the problem and the solution. I think I got. Parser prediction and grammar analysis are extremely complicated, which is why I'm still finding edge cases years after ANTLR v3 came out. The adaptive LL(*) in v4 is truly awesome, but even more complicated!

Wow. 15 lines of code in closure(). Took about an hour.