How I can check in next code that value of last tok.identifier is '='-character?
parameter = (
tok.identifier
>> ((lit(":")
>> tok.identifier) |
(tok.identifier >> statement))
);
EDIT. I declare identifier lex::token_def<std::string> identifier;
The correspondent concept in
boost::spirit::qiis described byqi::lit. You have to create aqi::litfor your tokens. Here is an example:Then you can write