resinator icon indicating copy to clipboard operation
resinator copied to clipboard

Grand Unified String Theory

Open squeek502 opened this issue 1 year ago • 0 comments

In the beginning of resinator, there was 1 parsing algorithm used for string literals. Since then, that has been split many times into multiple specialized parsers for different things:

  • "Normal" string parsing
  • DLGINCLUDE strings
  • Accelerators
  • parseQuotedStringAsWideString
  • Maybe more I'm forgetting right now

Recently, though, these implementations have been re-converging as I find new edge cases and make corrections. For example, accelerator string parsing and parseQuotedStringAsWideString are now roughly equivalent, but they are still using separate implementations.

It's possible that there's some commonality between all of the different implementations that I'm missing that would allow them to converge even further.

squeek502 avatar Sep 29 '24 05:09 squeek502