Package docutils :: Package readers :: Package python :: Module moduleparser :: Class TokenParser
[show private | hide private]
[frames | no frames]

Class TokenParser


Method Summary
  __init__(self, text)
  __iter__(self)
  function_parameters(self, lineno)
Return a dictionary mapping parameters to defaults (whitespace-normalized strings).
  goto_line(self, lineno)
  next(self)
  note_token(self)
  rhs(self, lineno)
Return a whitespace-normalized expression string from the right-hand side of an assignment at line lineno.

Class Variable Summary
dict closers = {')': '(', '}': '{', ']': '['}
dict del_ws_prefix = {',': 1, ')': 1, '=': 1, ':': 1, ']': 1,...
dict no_ws_suffix = {'(': 1, '[': 1, '=': 1, '{': 1, '.': 1}
dict openers = {'(': 1, '[': 1, '{': 1}

Method Details

function_parameters(self, lineno)

Return a dictionary mapping parameters to defaults (whitespace-normalized strings).

rhs(self, lineno)

Return a whitespace-normalized expression string from the right-hand side of an assignment at line lineno.

Class Variable Details

closers

Type:
dict
Value:
{')': '(', '}': '{', ']': '['}                                         

del_ws_prefix

Type:
dict
Value:
{',': 1, ')': 1, '=': 1, ':': 1, ']': 1, '}': 1, '.': 1}               

no_ws_suffix

Type:
dict
Value:
{'(': 1, '[': 1, '=': 1, '{': 1, '.': 1}                               

openers

Type:
dict
Value:
{'(': 1, '[': 1, '{': 1}                                               

Generated by Epydoc 2.0 on Tue Jul 22 05:30:51 2003 http://epydoc.sf.net