__init__(self,
name,
expression,
abbrev=None,
doc=None,
filter=None,
multirecord=1)
(Constructor)
| source code
|
FormatObject(name, expression[, abbrev][, doc] [, filter][,
multirecord])
name is the name of the object, abbrev is an abbreviation for the
name, and doc is some documentation describing the object.
expression is a Martel.Expression that can parse this format. filter
is an optional Martel.Expression that can be used to quickly determine
whether some input is parseable by this format.
multirecord is either 0/1 indicating whether this format can be used
to parse multiple records. By default, it is 1.
- Overrides:
Registry.RegisterableObject.__init__
|