3 ms·
Don't forget that "parser" also includes human brains, which tend to not be that great at parsing nested things. To use formal language theory, strings contain
by userbinator 9y ago
Don't forget that "parser" also includes human brains, which tend to not be that great at parsing nested things.
To use formal language theory, strings containing escape characters are regular, i.e. parseable with a finite-state machine. Allowing nesting means you need a stack to find the matching pair.