The skipper grammar

 制表符、空格、换行符、C风格注释解析语法:

#pragma once

#include 


namespace client { namespace parser
{
    namespace qi = boost::spirit::qi;
    namespace ascii = boost::spirit::ascii;

    ///
    //  The skipper grammar
    ///
    template 
    struct skipper : qi::grammar
    {
        skipper() : skipper::base_type(start)
        {
            qi::char_type char_;
            ascii::space_type space;

            start =
                    space                               // tab/space/cr/lf
                |   "/*" >> *(char_ - "*/") >> "*/"     // C-style comments
                ;
        }

        qi::rule start;
    };
}}

你可能感兴趣的:(Boost.Spirit,C++,c++)