instaparse

If you're not trampolining your parser, why bother getting up in the morning?
nathansmutz 2017-03-17T16:26:57.014507Z

Thanks @aengelberg. I wonder if my <anything> was more complicated than that when I tried it. Hmm, there may be a useful project in "parsing" instaparse code into regex suitable for grabbing parsable chunks. I'm pretty sure instaparse is generating regex on the backend; but the capture-groups would need some editing.

2017-03-17T16:29:32.077518Z

that is not correct, instaparse parses context free langauges, which regexes cannot do

2017-03-17T16:30:13.094398Z

(regular languages are a subset of context free languages)

nathansmutz 2017-03-17T17:11:11.083726Z

@hiredman I think I see what you mean. The problems I've been solving are probably simple enough that regex could define the same patterns. I suppose, getting into some real recursive stuff, it'd be less easy to go from instaparse-code to regex that says "grab a block of text that looks like this".