Package yagdoc :: Module tokenizer :: Class Macro
[show private | hide private]
[frames | no frames]

Type Macro

object --+
         |
        Macro


Macro definition.
Method Summary
  __init__(self, name, args, body)
Create a new Macro definition.
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variable Summary
list of str args: list of macro arguments (ellipsis forms a '...' argument).
list of Token body: Macro body, these tokens were too removed from the main list.
Token name: Token 'i' with the macro name, it was removed from the main token list.

Class Variable Summary
list __slots__ = ['name', 'args', 'body']

Method Details

__init__(self, name, args, body)
(Constructor)

Create a new Macro definition.
Parameters:
name - name field.
args - args field.
body - body field.
Overrides:
__builtin__.object.__init__

Instance Variable Details

args

list of macro arguments (ellipsis forms a '...' argument).
Type:
list of str
Value:
<member 'args' of 'Macro' objects>                                     

body

Macro body, these tokens were too removed from the main list.
Type:
list of Token
Value:
<member 'body' of 'Macro' objects>                                     

name

Token 'i' with the macro name, it was removed from the main token list. It is Token instead of just string to remember the location of the macro definition.
Type:
Token
Value:
<member 'name' of 'Macro' objects>                                     

Class Variable Details

__slots__

Type:
list
Value:
['name', 'args', 'body']                                               

Generated by Epydoc 2.1 on Fri Oct 5 00:36:53 2007 http://epydoc.sf.net