2 ms·
It's the way I always approach it when parsing a DSL, but always line-by-line, rather than a regex across the whole script. I know it isn't going to be the mos
by GordonS 8y ago
It's the way I always approach it when parsing a DSL, but always line-by-line, rather than a regex across the whole script.
I know it isn't going to be the most performant approach, but if you're comfortable with regular expressions it's really simple, and performant enough for most cases.