| Home | Trees | Index | Help |
|
|---|
| Package lyntin :: Module argparser :: Class Parser |
|
ExtraIndexParser,
ExtraNamedParser| Method Summary | |
|---|---|
Initializes the Parser. | |
| varies |
Parses the value according to this parser and its associated Typechecker. |
Populates the argument dictionary with the appropriate value. | |
Sets the default value for this Parser which is used when no other value is given. | |
Sets the typechecker. | |
| Method Details |
|---|
__init__(self,
argparser,
argname)
Initializes the Parser.
|
parse(self, val)Parses the value according to this parser and its associated Typechecker. We both typecheck it here (making sure it's valid) as well as convert it (i.e. strings -> ints, strings -> regexps...).
|
parseInto(self, key, val, argdict)Populates the argument dictionary with the appropriate value.
|
setDefault(self, val)Sets the default value for this Parser which is used when no other value is given. Also sets the "defaultset" member which tells the Parser that it has a default value.
|
setTypeChecker(self, typechecker)Sets the typechecker. The Parser then uses this to check the values coming in before setting them on the name/value dict.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 9 09:17:41 2004 | http://epydoc.sf.net |