3 ms·
I get it. I do ... it still rubs me the wrong way because: 1) You are leveraging a JSON parser to get strings 2) The strings contain tokens that need to be "pa
by imoverclocked 5y ago
I get it. I do ... it still rubs me the wrong way because:
1) You are leveraging a JSON parser to get strings
2) The strings contain tokens that need to be "parsed"
3) You turn this double-parse into an AST
I see this pattern all too often. If you create (or re-use an existing) grammar that is specific to the problem domain then you get a much faster parse, smaller data transfer/storage, and a more human-readable format.