HappyDoc Source Documentation: happydoclib.parseinfo | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Extract information from a Python code parse tree.This module is based on the Demos/parser/example.py module distributed with the Python source distribution. File-specific Parser Configuration ValuesParameters to the HappyDoc Parser can also be embedded within the first comment block of the module. The parameter values recognized and their meanings are listed below. To provide file-specific parser configuration settings, any Python code can be embedded in the comments of the file. For example: #!/usr/bin/env python # # HappyDoc:# These variables should be discovered. # HappyDoc:TestInt=1 # HappyDoc:TestString="String" # HappyDoc:TestStringModule=string.strip(' this has spaces in front and back ') # HappyDoc:url=urlencode({'a':'A', 'b':'B'}) # HappyDoc:docStringFormat='StructuredText' All lines beginning with the pattern "'# HappyDoc:'" will be
concatenated (separated by newlines) and Pre-defined Globals
Recognized Parser Configuration Variables
|