Re: How do I match EndOfInput using boost::spirit::lex?

Seth <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 14-07-16 02:49, Peter Foelsche wrote:
> As far as I understand there is no way to attach an action to this
> match, is there?
> The only way is to see the lexer return, correct?
> So the best way (or one way) to write a lexer which can deal with
> include files (or macros)
> would be to invoke the lexer repeatedly and feed the correct iterators 
> (to the newly included file or back to the original file) 
> to it, am I right?
> So one would have to manage the stack of iterators outside of
> boost::spirit::lex?

relevant:
http://stackoverflow.com/questions/10525216/how-do-i-implement-include-directives-using-boostspiritlex


------------------------------------------------------------------------------
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.