CatapultServer  v0.5.0.1 (Elephant)
HeaderParser.HeaderParser Class Reference

Public Member Functions

def __init__ (self, errorReporter, path, simpleValidators, fixIndentsInFiles=False)
 
def fixIndents (self, inf, outf)
 
def reportIndents (self)
 
def processContinuation (self, line)
 
def processPreprocessor (self, line)
 
def parseFile (self, inputStream)
 
def parseInclude (self, line)
 
def parsePreprocessor (self, line)
 
def parseExtern (self, line)
 

Public Attributes

 errorReporter
 
 path
 
 lineNumber
 
 preprocessor
 
 includes
 
 includeError
 
 simpleValidators
 
 fixes
 

Static Public Attributes

 patternInclude = re.compile(r'\s*#\s*include[ \t]*(["<][^">]*[">])(.*)')
 
 patternPreprocessor = re.compile(r'\s*#\s*(\w*)')
 
 patternExtern = re.compile(r'\s*extern\s*')
 
 patternEmptyLine = re.compile(r'^\s*$')
 

Constructor & Destructor Documentation

◆ __init__()

def HeaderParser.HeaderParser.__init__ (   self,
  errorReporter,
  path,
  simpleValidators,
  fixIndentsInFiles = False 
)

Member Function Documentation

◆ fixIndents()

def HeaderParser.HeaderParser.fixIndents (   self,
  inf,
  outf 
)
Here is the call graph for this function:

◆ parseExtern()

def HeaderParser.HeaderParser.parseExtern (   self,
  line 
)
Here is the caller graph for this function:

◆ parseFile()

def HeaderParser.HeaderParser.parseFile (   self,
  inputStream 
)
Here is the call graph for this function:

◆ parseInclude()

def HeaderParser.HeaderParser.parseInclude (   self,
  line 
)
Here is the caller graph for this function:

◆ parsePreprocessor()

def HeaderParser.HeaderParser.parsePreprocessor (   self,
  line 
)
Here is the caller graph for this function:

◆ processContinuation()

def HeaderParser.HeaderParser.processContinuation (   self,
  line 
)
Here is the caller graph for this function:

◆ processPreprocessor()

def HeaderParser.HeaderParser.processPreprocessor (   self,
  line 
)
Here is the caller graph for this function:

◆ reportIndents()

def HeaderParser.HeaderParser.reportIndents (   self)

Member Data Documentation

◆ errorReporter

HeaderParser.HeaderParser.errorReporter

◆ fixes

HeaderParser.HeaderParser.fixes

◆ includeError

HeaderParser.HeaderParser.includeError

◆ includes

HeaderParser.HeaderParser.includes

◆ lineNumber

HeaderParser.HeaderParser.lineNumber

◆ path

HeaderParser.HeaderParser.path

◆ patternEmptyLine

HeaderParser.HeaderParser.patternEmptyLine = re.compile(r'^\s*$')
static

◆ patternExtern

HeaderParser.HeaderParser.patternExtern = re.compile(r'\s*extern\s*')
static

◆ patternInclude

HeaderParser.HeaderParser.patternInclude = re.compile(r'\s*#\s*include[ \t]*(["<][^">]*[">])(.*)')
static

◆ patternPreprocessor

HeaderParser.HeaderParser.patternPreprocessor = re.compile(r'\s*#\s*(\w*)')
static

◆ preprocessor

HeaderParser.HeaderParser.preprocessor

◆ simpleValidators

HeaderParser.HeaderParser.simpleValidators

The documentation for this class was generated from the following file: