alaCarte Maps
Renderer for OpenStreetMap tiles
comment_skipper.cpp
Go to the documentation of this file.
1 
23 
24 #include <boost/spirit/include/qi.hpp>
25 
26 
31  : CommentSkipper::base_type(rule_comment, "comment skipper")
32 {
33  rule_comment = chs::space
34  | (qi::lit("//") >> *(qi::char_ - qi::eol) >> qi::eol)
35  | (qi::lit("/*") >> *(qi::char_ - "*/") >> qi::lit("*/"));
36 }
Grammar to skipp c/c++ style comments.
qi::rule< GrammarIterator > rule_comment
The mainrule.
CommentSkipper()
This file is part of alaCarte.