11 main =
symbol[qi::_val = px::construct<Identifier>(qi::_1)] |
indexed[qi::_val = qi::_1];
12 main.name(
"identifier");
13 indexed = (qi::lit(
"(") >> qi::lit(
"_") >>
symbol >> +
numeral >> qi::lit(
")"))[qi::_val = px::construct<Identifier>(qi::_1, qi::_2)];
PositionIteratorType Iterator
Class to create the formulas for axioms.
qi::rule< Iterator, Identifier(), Skipper > indexed
qi::rule< Iterator, Identifier(), Skipper > main
Parses numerals: (0 | [1-9][0-9]*)