...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
The eol
parser matches
the end of line (CR/LF and combinations thereof).
// forwards to <boost/spirit/home/qi/auxiliary/eol.hpp> #include <boost/spirit/include/qi_eol.hpp>
Also, see Include Structure.
Name |
---|
|
Semantics of an expression is defined only where it differs from, or
is not defined in PrimitiveParser
.
Expression |
Semantics |
---|---|
|
Create a parser that matches the end of line. |
Expression |
Attribute |
---|---|
|
|
O(1)
Note | |
---|---|
The test harness for the example(s) below is presented in the Basics Examples section. |
Some using declarations:
using boost::spirit::qi::eol;
Using eol
:
test_parser("\n", eol);