Method Summary |
|
__init__ (self,
content,
debug)
|
|
checkForList (self,
c,
ind)
Look-ahead to find out whether the next thing is a list |
|
getChar (self,
c,
ind)
Get the next character from a string (if there is any) |
|
getData (self)
Get the data structure |
|
getName (self,
c,
ind)
Gets a name for a dictionary entry |
|
getString (self,
c,
ind)
Get a quoted string and return it (including the quotes) |
|
getValue (self,
c,
ind)
Get characters up to the next white-space |
|
isOK (self,
c,
ind)
Check whether there are still characters in the string |
|
parseDict (self,
c,
ind)
Parse assuming a dictionary |
|
parseList (self,
c,
ind)
Parse a list |
|
parserError (self,
text,
c,
ind)
Prints the error message of the parser and exit |
|
parseValue (self,
c,
ind)
Parse a value that ends withe semi-colon |
|
peekChar(self,
c,
ind)
|
|
printContext (self,
c,
ind)
Prints the context of the current index |
|
rmComments (self,
c)
Removes the comments from a string |
|
skipSpace (self,
c,
ind)
Skip spaces and set index to the next non-whitespace character |