Parse quoted strings with boost::spirit
问题 I would like to parse a sentence where some strings may be unquoted, \'quoted\' or \"quoted\". The code below almost works - but it fails to match closing quotes. I\'m guessing this is because of the qq reference. A modification is commented in the code, the modification reults in \"quoted\' or \'quoted\" also parsing and helps show the original problem is with the closing quote. The code also describes the exact grammar. To be completely clear: unquoted strings parse. A quoted string like \