Using a preprocessor as a library typically involves not only to translate
input into output, but also to provide callback hooks, such as to report
macro definitions, macro evaluations (during macro call expansion),
processing include directives, etc.
In addition, it would be good to allow users to provide output-generating
functions so output can be streamed not into a file, but into any
user-provided callback. It would be particularly helpful for this if such
calls wouldn't be fed characters, but entire tokens.
If any of this sounds useful, I would be glad to provide more detailed
use-cases, or even patches.
Thanks,
Stefan
Original issue reported on code.google.com by
stefan.s...@gmail.comon 27 Feb 2009 at 8:11