Re: Parser does not parse

Mike Gresens <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
Some more input for you. You can fix your problem in 2 ways:

1)
You can follow Seth's hint: Don't use the expection operator '>', so replace
  (char_("a-zA-Z0-9")  > '=' > int_ )
to
  (char_("a-zA-Z0-9")  >> '=' >> int_ )
This will not throw the expectation_failure but backtrace to the
alternative.

2)
Tell the parser to mach char_("a-zA-Z0-9") BOT NOT "if"/"endif". So write
  (char_("a-zA-Z0-9") - "if" - "endif" > '=' > int_ )

Best regards,
Mike...



--
View this message in context: http://boost.2283326.n4.nabble.com/Parser-does-not-parse-tp4690084p4690091.html
Sent from the spirit-general mailing list archive at Nabble.com.

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.