0

How can I use boost::spirit::lex::tokenize_and_parse with with those iterators? All examples seem to use string iterators.

Actually I want to use iterators from a std::istream object instead of copying the whole file content into a string.

Baradé
  • 1,290
  • 1
  • 15
  • 35
  • I just want to use my parser as before with the exception of using a separate Lexer so I need to pass the same stream objects as before. – Baradé May 24 '14 at 01:57
  • I think you want `lexer::pos_iterator` See e.g. http://stackoverflow.com/a/16931098/85371 (just showing a sample that it can be done) – sehe May 25 '14 at 22:27
  • I want to use iterators of a std::istream object instead of std::string. Do I always have to copy the whole file content into one string before? – Baradé May 26 '14 at 09:05

0 Answers0