3 ms·
Interesting. Parser combinators might actually be a "proper" example that can't be transformed into either a loop or a single trampoline chain... I've never tri
by viraptor 17y ago
Interesting. Parser combinators might actually be a "proper" example that can't be transformed into either a loop or a single trampoline chain... I've never tried to implemented one, but I can imagine some parts to be easier when done directly with closures (try one path, if it fails just drop it and try another one). On the other hand - which parser-combinator needs more than 50 or so levels of depth...
Hopefully someone here did it / can comment :)
- eru 17y ago> On the other hand - which parser-combinator needs more than 50 or so levels of depth... Oh, that's easy: Just have a combinator that repeats somehow, but complicated enough that you don't want to do it as a loop.