instaparse

If you're not trampolining your parser, why bother getting up in the morning?
mathpunk 2021-02-10T22:14:57.012400Z

I'm writing my first grammar. It's going pretty well but, I've captured all the stuff I care about and now I have some extra junk I don't care about. How can I express something like, "S = word data junk", where I'm interested in part of the pattern and then afterward there is maybe some "whatever"?

aengelberg 2021-02-10T22:17:16.012800Z

@mathpunk you might want the “hide” syntax (`<>`)?

aengelberg 2021-02-10T22:19:37.014900Z

you could capture all the other junk with &lt;#'[\s\S]*'&gt;

mathpunk 2021-02-10T22:20:48.015200Z

excellent, thank you!