Flowdock
method

scan

Importance_1
v1_9_1_378 - Show latest stable - 0 notes - Class: PerlPOD
scan() public

Extract the Pod(-like) comments from the code. At its most basic there will ne no need to distinguish between the different types of header, etc.

This uses a simple finite state machine, in a very procedural pattern. I could “replace case with polymorphism” but I think it would obscure the intent, scatter the code all over tha place. This machine is necessary because POD requires that directives be preceded by blank lines, so reading line by line is necessary, and preserving state about what is seen is necesary.

Show source
Register or log in to add new notes.