
22 Oct
2010
22 Oct
'10
12:06 p.m.
I've decided to break up my parser into sub-grammars to improve both the readability and compile time. I'm now trying to specify a skip parser for one of the sub-grammars, but I don't know how to do it. I'm familiar with specifying a skip parser in the parse functions, but not in the grammar itself. Could somebody please provide an example? Thanks.
You need to pass the skipper type to the subgrammar (see attached). Additionally you need to utilize phrase_parse() instead of parse to hand down a skipper instance. Regards Hartmut --------------- http://boost-spirit.com