How to parse groups with operator and brackets
问题 First I would like to say that I am just starting using pyparsing , and I need some help with the following. So here is the context: I have a file with text lines. Each line can have one sequence or can be a set of sequences combined with the concurrent operator || . The representation can either be (seq1)||(seq2)||... etc or simply seq1 . A sequence seq_ is a set of events, starting with a question followed by one or more answers, the sequence order is defined by the order of the answers on