
Steve Folly wrote:
Hi,
I've read FAQ question number one about the free parse() function not compiling when and I've managed to get that to work by using rule
as suggested. However, I need to use the pt_parse method to create a parse tree. I'm obviously missing something really obvious because now pt_parse wont compile, even though I'm using a phrase_scanner_t because of the space_p skip parser.
The easiest advice is: don't directly pass rules to any parse function. Instead, wrap them inside a grammar. BTW, please post SPirit related questions to: Spirit-general mailing list Spirit-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spirit-general HTH, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net