| |
- __builtin__.object
-
- Mark
- StreamReader
class Mark(__builtin__.object) |
|
The Mark class marks a point in an input stream. |
|
Methods defined here:
- __init__(self, reader, fileId=None, stream=None, inBaseDir=None, encoding=None)
- __str__(self)
- getFile(self)
- popStream(self)
- pushStream(self, inFileId, inStream, inBaseDir, inEncoding)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class StreamReader(__builtin__.object) |
|
This class handles the PSP source file.
It provides the characters to the other parts of the system.
It can move forward and backwards in a file and remember locactions. |
|
Methods defined here:
- __init__(self, filename, ctxt)
- advance(self, length)
- Advance length characters
- getChars(self, start, stop)
- getFile(self, i)
- hasMoreInput(self)
- init(self)
- isDelimiter(self)
- isSpace(self)
- No advancing.
- mark(self)
- matches(self, s)
- newSourceFile(self, filename)
- nextChar(self)
- nextContent(self)
- Find next < char.
- parseAttributeValue(self, valueDict)
- parseTagAttributes(self)
- Parse the attributes at the beginning of a tag.
- parseToken(self, quoted)
- peekChar(self, cnt=1)
- popFile(self)
- pushFile(self, filepath, encoding=None)
- registerSourceFile(self, filepath)
- reset(self, mark)
- skipSpaces(self)
- skipUntil(self, s)
- Greedy search.
Return the point before the string, but move reader past it.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |