Parsing / reformatting a tokenized list in python
Parsing / reformatting a tokenized list in python Question: I have lists of tokens of the form "(a OR b) AND c OR d AND c" or "(a OR b) AND c OR (d AND c)" I want to reformat these tokens into a string of the form: Expressions are of arbitrary form like (a …