Modules | Files | Inheritance Tree | Inheritance Graph | Name Index | Config
module Synopsis::Linker::Comments
class SSDComments
Files: Synopsis/Linker/Comments.py
SSDComments-inheritance Scopes/Synopsis/Linker/Comments/CommentProcessor.html

A class that selects only //. comments.


Operations Summary:
 __init__(self)
Compiles the regular expressions [Source]
 process(self, decl)
Calls processComment on all comments [Source]
 processComment(self, comment)
Replaces the text in the comment. [Source]
 strip_star(self, str)
Strips all star-format comments from the string [Source]
 parse_ssd(self, str)
Filters str and returns just the lines that start with //. [Source]

Operations Inherited from CommentProcessor
processAll, visitDeclaration

Operation Details:
  processComment(self, comment)

Replaces the text in the comment. It calls strip_star() first to remove all multi-line star comments, then follows with parse_ssd().