Back to index

enigmail  1.4.3
Classes | Functions | Variables
Preprocessor Namespace Reference

Classes

class  Preprocessor

Functions

def main
def preprocess

Variables

list __all__ = ['Preprocessor', 'preprocess']

Detailed Description

This is a very primitive line based preprocessor, for times when using
a C preprocessor isn't an option.

Function Documentation

Definition at line 460 of file Preprocessor.py.

00460 
00461 def main():
00462   pp = Preprocessor()
00463   pp.handleCommandLine(None, True)
00464   return

Here is the call graph for this function:

Here is the caller graph for this function:

def Preprocessor.preprocess (   includes = [sys.stdin],
  defines = {},
  output = sys.stdout,
  line_endings = '\n',
  marker = '#' 
)

Definition at line 467 of file Preprocessor.py.

00467 
00468                line_endings='\n', marker='#'):
00469   pp = Preprocessor()
00470   pp.context.update(defines)
00471   pp.setLineEndings(line_endings)
00472   pp.setMarker(marker)
00473   pp.out = output
00474   for f in includes:
00475     pp.do_include(f)

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 58 of file Preprocessor.py.