5 ms·
This kind of task is a great fit for a parsing expression grammar. Unfortunately most implementations are awkward to use and suboptimal in execution, but if you
by samatman 3y ago
This kind of task is a great fit for a parsing expression grammar. Unfortunately most implementations are awkward to use and suboptimal in execution, but if you can find one which is neither of these things (they exist) it's ideal.