User:Fraggle/codeptr doc.py

This is the Python script I wrote to generate the pages under Category:Code pointers. It uses DEH 9000.
 * 1) !/usr/bin/env python

import deh9000 import fns

TEMPLATE = """

%(ptrname)s is a code pointer used in %(purpose)s.

Uses
The  code pointer appears in the following states in Doom's state table:

%(uses_table)s

Example
The following is an example of how to set the  code pointer in a Dehacked file:

%(example)s

Or using BEX syntax:

[CODEPTR] Frame 1234 = %(bexname)s