/ HappyDoc3-r3_1 / happydoclib / docset / docset_TAL / TAL / markupbase.py / ParserBase
Parser base class which provides some common support methods used
by the SGML/HTML and XHTML parsers.
Methods
|
|
|
_parse_doctype_element
|
_parse_doctype_element (
self,
i,
declstartpos,
)
- Internal
- scan past
|
|
_parse_doctype_notation
|
_parse_doctype_notation (
self,
i,
declstartpos,
)
- Internal
- scan past
|
|
getpos
|
getpos ( self )
Return current line number and offset.
|
|
_scan_name
|
_scan_name (
self,
i,
declstartpos,
)
- Internal
- scan a name token and the new position and the token, or
return -1 if we've reached the end of the buffer.
|
|
parse_declaration
|
parse_declaration ( self, i )
- Internal
- parse declaration (for use by subclasses).
|
|
updatepos
|
updatepos (
self,
i,
j,
)
- Internal
- update line number and offset. This should be
called for each piece of data exactly once, in order -- in other
words the concatenation of all the input strings to this
function should be exactly the entire input.
|
|
_parse_doctype_subset
|
_parse_doctype_subset (
self,
i,
declstartpos,
)
- Internal
- scan past the internal subset in a ].
|
|
_parse_doctype_entity
|
_parse_doctype_entity (
self,
i,
declstartpos,
)
- Internal
- scan past
|
|
_parse_doctype_attlist
|
_parse_doctype_attlist (
self,
i,
declstartpos,
)
- Internal
- scan past
|
|
|