Relative Content

Tag Archive for pythonparsingpyparsing

Make (a quite simple) pyparsing based parser fault tolerant

I wrote a little parser using pyparsing to parse Google-like search strings, like foo AND (bar OR baz) (full code below). Like Google, I would like to make the parser fully fault-tolerant. It should ignore errors and parse as much as it can.