TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: MICHAEL STAPLETON
from: WILLIAM MCBRINE
date: 1998-02-10 01:03:00
subject: Comment parsing

-=> 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 *

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.