Trees | Indices | Help |
|
---|
|
BaseParser --+ | BlockParser
BaseParser is used to parse block structures. Format: name { var1 <assign> val1 <delimiter> var2 <assign> val2 [<list_separator>val3...] <delimiter> ... }
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
STATE_INIT = 0
|
|||
STATE_BLOCK_OPEN = 1
|
|||
STATE_VARIABLE = 2
|
|||
STATE_ASSIGN = 3
|
|||
STATE_VALUE = 4
|
|||
STATE_DELIM = 5
|
|||
STATE_LIST_VALUE = 6
|
|||
DEFAULT_OPT = {u"comment": u"#", u"varre": re.compile(r"^[\w-]
|
|
|
Parse blocks of text and return a dict of ParsedData objects or raise libxyz.exceptions.ParseError exception
|
|
DEFAULT_OPT
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 16 01:51:57 2010 | http://epydoc.sourceforge.net |