Beispiel #1
0
def main():
    # Parse command line
    from doxygen_preprocessor import CommandLineHandler
    options, remainder = CommandLineHandler()

    # Run Implementation:
    FilterFiles([], options, remainder)
Beispiel #2
0
            Code = ""
        StateMachineLines.append(Code)

    return StateMachineLines


def StateMachineHandler(lineArray, options):
    """Top level state machine handler.

	Find the lines containing state machine implementations and pass them
	onto the detailed handler.
	"""
    return BlockHandler(lineArray,
                        options,
                        StartDelimiter='@statemachine',
                        EndDelimiter='@endstatemachine',
                        Processor=ProcessStateMachine)


if __name__ == "__main__":
    # Parse command line
    from doxygen_preprocessor import CommandLineHandler
    options, remainder = CommandLineHandler()

    from filterprocessor import FilterFiles
    FilterFiles([
        StateMachineHandler,
    ], options, remainder)

# vim:encoding=utf-8