Fix LaTeX code for system messages.
[docutils.git] / sandbox / davidg / pysource_reader / nodes.py
blob6aae3bdb648d6e861056d8957c7944d9e9c6889c
1 #! /usr/bin/env python
3 """
4 :Author: David Goodger
5 :Contact: goodger@users.sourceforge.net
6 :Revision: $Revision$
7 :Date: $Date$
8 :Copyright: This module has been placed in the public domain.
10 """
12 from dps import nodes
13 from dps.nodes import Element, TextElement, Structural, Component, Inline
16 # =====================
17 # Structural Elements
18 # =====================
20 class package_section(Structural, Element): pass
21 class module_section(Structural, Element): pass
22 class class_section(Structural, Element): pass
23 class method_section(Structural, Element): pass
24 class function_section(Structural, Element): pass
25 class module_attribute_section(Structural, Element): pass
26 class class_attribute_section(Structural, Element): pass
27 class instance_attribute_section(Structural, Element): pass
29 # Structural Support Elements
30 # ---------------------------
32 class inheritance_list(Component, Element): pass
33 class parameter_list(Component, Element): pass
34 class parameter_item(Component, Element): pass
35 class optional_parameters(Component, Element): pass
36 class parameter_tuple(Component, Element): pass
37 class parameter_default(Component, TextElement): pass
38 class initial_value(Component, TextElement): pass
41 # =================
42 # Inline Elements
43 # =================
45 class package(Component, Inline, TextElement): pass
46 class module(Component, Inline, TextElement): pass
49 class inline_class(Component, Inline, TextElement):
51 tagname = 'class'
54 class method(Component, Inline, TextElement): pass
55 class function(Component, Inline, TextElement): pass
56 class variable(Inline, TextElement): pass
57 class parameter(Component, Inline, TextElement): pass
58 class type(Inline, TextElement): pass
59 class class_attribute(Component, Inline, TextElement): pass
60 class module_attribute(Component, Inline, TextElement): pass
61 class instance_attribute(Component, Inline, TextElement): pass
62 class exception_class(Inline, TextElement): pass
63 class warning_class(Inline, TextElement): pass
66 class SpecificVisitor(nodes.SpecificVisitor):
68 """
69 """
71 def visit_class_attribute(self, node, ancestry): pass
72 def visit_class_attribute_section(self, node, ancestry): pass
73 def visit_class_section(self, node, ancestry): pass
74 def visit_exception_class(self, node, ancestry): pass
75 def visit_function(self, node, ancestry): pass
76 def visit_function_section(self, node, ancestry): pass
77 def visit_inheritance_list(self, node, ancestry): pass
78 def visit_initial_value(self, node, ancestry): pass
79 def visit_inline_class(self, node, ancestry): pass
80 def visit_instance_attribute(self, node, ancestry): pass
81 def visit_instance_attribute_section(self, node, ancestry): pass
82 def visit_method(self, node, ancestry): pass
83 def visit_method_section(self, node, ancestry): pass
84 def visit_module(self, node, ancestry): pass
85 def visit_module_attribute(self, node, ancestry): pass
86 def visit_module_attribute_section(self, node, ancestry): pass
87 def visit_module_section(self, node, ancestry): pass
88 def visit_optional_parameters(self, node, ancestry): pass
89 def visit_package(self, node, ancestry): pass
90 def visit_package_section(self, node, ancestry): pass
91 def visit_parameter(self, node, ancestry): pass
92 def visit_parameter_default(self, node, ancestry): pass
93 def visit_parameter_item(self, node, ancestry): pass
94 def visit_parameter_list(self, node, ancestry): pass
95 def visit_parameter_tuple(self, node, ancestry): pass
96 def visit_type(self, node, ancestry): pass
97 def visit_variable(self, node, ancestry): pass
98 def visit_warning_class(self, node, ancestry): pass