Fork me on GitHub
#instaparse
<
2017-02-13
>
doddenino08:02:53

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

dave17:02:55

@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

doddenino17:02:38

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

aengelberg17:02:37

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

doddenino17:02:58

@aengelberg I think trace is perfect

doddenino18:02:59

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

doddenino18:02:51

Celebrating too soon 😞