instaparse

If you're not trampolining your parser, why bother getting up in the morning?
doddenino 2017-02-13T08:58:53.000154Z

Hi! Is there a way to do a step by step debug of a parser?

dave 2017-02-13T17:50:55.000155Z

@doddenino: https://github.com/Engelberg/instaparse#total-parse-mode <-- this is maybe not exactly what you want, but it can be helpful for debugging a parse failure

aengelberg 2017-02-13T17:51:28.000157Z

@doddenino you're probably looking for tracing mode. https://github.com/Engelberg/instaparse/blob/master/docs/Tracing.md

doddenino 2017-02-13T17:52:38.000159Z

Oh that's great! 🙂 Thanks! I'm having a lot of problems trying to make my parser work correctly 😞

aengelberg 2017-02-13T17:53:37.000160Z

Also, calling insta/parse with :start overridden can also help debug certain small pieces of your parser.

doddenino 2017-02-13T17:56:58.000161Z

@aengelberg I think trace is perfect

doddenino 2017-02-13T18:10:59.000162Z

I don't know how and why, but it's working correctly now 😅

doddenino 2017-02-13T18:12:51.000163Z

Celebrating too soon 😞