Closed GoogleCodeExporter closed 8 years ago
I have examined the doxygen manual for the "conditional syntax". I believe it is
possible to keep all of the conditional handling inside the lexer/scanner -
behaving
similarly to a C-preprocessor[1].
For better:
* No modifications to the parser nor will a tree have to be flattened to a list
after parsing.
and for worse:
* The other branches are not checked neither for syntax nor semantics.
~Niels
[1] Except a real C-preproccesor allows for more advanced conditionals and is
probably implemented using a parser as well.
Original comment by NThykier@gmail.com
on 25 Jul 2009 at 8:52
Original comment by Michael....@gmail.com
on 26 Jul 2009 at 2:46
I think the C preprocessor can be used to do this already:
cpp -DBG input.msc -o- | mscgen -i- -Tpng -o out.png
Any of the output lines which start with a # will be ignored by mscgen, so
there's no problem there.
Additionally, Doxygen includes a C pre-processor which I guess could also be
used to modify mscgen output in the case that it's used in that context.
Since other well-defined and effective pre-processors already exist, I think
I'm going to try to follow the Unix mantra and make mscgen do one thing and do
it well!
Original comment by Michael....@gmail.com
on 18 Aug 2010 at 1:06
Original issue reported on code.google.com by
NThykier@gmail.com
on 18 Jul 2009 at 11:06