-=> Michael Stapleton wrote to John Gardeniers <=-
MS> Comment extraction is not as easy as one might first think. You
MS> basically need a complete code parser to deal with all cases.
?
Some pseudocode:
Read source file until '/' or EOF
If '/', check next character:
If '/', read comment (C++) to EOL (optional)
If '*', read comment (C) to '*/'
Loop
What have I missed?
... Don't ask me... The cat is in charge around here!
---
1:109/570)
---------------
* Origin: * My Place BBS * Bowie, Md USA * V.34 * (301)805-1602 *
|