How can I track the input position with multiple inputs using Boost :: Spirit :: Qi?

I would like to support something like a C ++ #includemechanism in the boost parser. Essentially, I have a script command that asks my parser to load a script from a file. I would like to be able to report error messages as described in tracking input position during parsing , but they do not allow parsing of multiple inputs.

Can this be done with boost::spirit::qi?

I worked on getting different inputs using a smarter type of iterator. I would still like to see the exact positioning.

+3
source share
1 answer

, - . , , . , .

, (.. #include) . , . EOF , #include. , EOF .

.

+1

Source: https://habr.com/ru/post/1752383/


All Articles