Home | Trees | Index | Help |
|
---|
Package docutils :: Package parsers :: Package rst :: Module states :: Class RSTStateMachine |
|
StateMachine
--+ |StateMachineWS
--+ | RSTStateMachine
reStructuredText's master StateMachine.
The entry point to reStructuredText parsing is the run()
method.
Method Summary | |
---|---|
Check for illegal structure: empty document. | |
Parse input_lines and return a docutils.nodes.document instance. | |
Inherited from StateMachineWS | |
Return an indented block and info. | |
Return a block of indented lines of text, and info. | |
Return an indented block and info. | |
Inherited from StateMachine | |
Initialize a StateMachine object; add state objects. | |
Return line number of current line (counting from 1). | |
Return line offset of current line, from beginning of file. | |
Initialize & add a state_class (State subclass) object. | |
Add state_classes (a list of State subclasses). | |
Return 1 if the input is at or before beginning-of-file. | |
Return 1 if the input is at or past end-of-file. | |
The observer parameter is a function or bound method which takes two
arguments, the source and offset of the current line. | |
Examine one line of input for a transition match & execute its method. | |
| |
Report error details. | |
Return current state object; set it first if next_state given. | |
Return a contiguous block of text. | |
Jump to absolute line offset line_offset , load and return it. | |
| |
Return 1 if the next line is blank or non-existant. | |
Return the result of a regular expression match. | |
Load self.line with the n 'th next line and return it. | |
| |
Load self.line with the n 'th previous line and return it. | |
Initialize self.states . | |
Remove circular references to objects no longer required. |
Method Details |
---|
check_document(self)Check for illegal structure: empty document. |
run(self, input_lines, document, input_offset=0, match_titles=1, inliner=None)Parse Extend
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Tue Jul 22 05:30:29 2003 | http://epydoc.sf.net |