1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-04-12 22:03:13 +00:00
Jonathan Coates 22cadd6730
Various improvements to our Lua parser
- Encode the DFA as a virtual machine (identical to lrgrep) rather than
   compiling it to a series of Lua functions. While this is a little
   slower and uglier, it's much more space efficient, shaving off 16Kb.

 - Minimise the DFA properly. This only shaves off a few states, but
   every little helps.

 - Run the error handling code from a non-reduced parser stack. This was
   incredibly nasty to get right (and positions are still not correctly
   handled), but it fixes several broken error messages.
2023-02-04 12:46:51 +00:00
..
2022-12-03 15:55:48 +00:00
2022-11-10 08:54:09 +00:00