The DtdParser class parses a DTD received from a Request. More...
Publicly inherits QObject.
DtdParser | ( Dtd* dtd ); | |
~DtdParser | ( ); |
void | done | ( ); |
void | fwdData | ( const char* bytes, int length ); |
void | fwdEndOfData | ( ); |
void | token | ( Token token, const char* text ); |
void | stateAttlist | ( Token token, const char* text ); |
void | stateAttlistAttrName | ( Token token, const char* text ); |
void | stateAttlistAttrType | ( Token token, const char* text ); |
void | stateAttlistAttrValue | ( Token token, const char* text ); |
void | stateAttlistAttrValueType | ( Token token, const char* text ); |
void | stateAttlistEnd | ( ); |
void | stateContent | ( Token token, const char* text ); |
void | stateDeclSubset | ( Token token, const char* text ); |
void | stateElementDeclETag | ( Token token, const char* text ); |
void | stateElementDeclEnd | ( ); |
void | stateElementDeclExcl | ( Token token, const char* text ); |
void | stateElementDeclIncl | ( Token token, const char* text ); |
void | stateElementDeclModel | ( Token token, const char* text ); |
void | stateElementDeclNames | ( Token token, const char* text ); |
void | stateElementDeclSTag | ( Token token, const char* text ); |
void | stateEntityDecl | ( Token token, const char* text ); |
void | stateMarkupDeclSkip | ( Token token, const char* text ); |
void | stateMarkupDeclStart | ( Token token, const char* text ); |
void | data | ( const char* bytes, int length ); |
void | done | ( Dtd* dtd ); |
void | endOfData | ( ); |
QString | _attrDefaultValue; |
QStrIList | _attrEnums; |
QString | _attrName; |
Type | _attrType; |
QString | _attrValue; |
ValueType | _attrValueType; |
QStrIList | _contentElements; |
SgmlEntity* | _currentEntity; |
SgmlNode* | _currentNode; |
int | _declDepth; |
Dtd* | _dtd; |
bool | _elementList; |
QStrIList | _elementNames; |
bool | _etagRequired; |
QStrIList | _exclNames; |
QStrIList | _inclNames; |
SgmlLexer* | _lexer; |
bool | _stagRequired; |
The DtdParser class parses a DTD received from a Request.
The DtdParser tokenizes the a data stream, using an SgmlLexer, and constructs a set of DFAs. The DFAs are used by the SgmlParser to tell it where to expect optional start and end tags.Create a new DtdParser, and an SgmlLexer to tokenize the input stream.
Destroy the parser.
This slot processes the done signal from the SgmlLexer. Figure out what the starting element for the document type is, and emit the done signal.
This slot forwards the data signal from the Request to the SgmlLexer.
This slot forwards the endOfData signal from the Request to the SgmlLexer.
This slot processes a token emitted from the SgmlLexer. An appropriate dispatch function is chosen based on the current state of the parser.
Process the list of elements that this ATTLIST declaration applies to.
Process the name of the attribute.
Process the type of attribute (IMPLIED, FIXED, REQUIRED).
Process the default value (if any) for an attribute.
Process the attribute's value type (CDATA, NAME, NUMBER).
Create the attribute list for each element.
Ignore all content, and search for the beginning of a markup declaration.
Process a marked section. A mark section may be INCLUDEd or IGNOREd.
Process the optional/required end tag specification.
Do post-processing of an element declaration. This includes creating a new SgmlElement, and constructing a ContentModel for it.
Process the list of elements that are excluded from the content model.
Process the list of elements that are included on the content model.
Process the content model declaration for an element.
Process the list of elements that this declaration applies to.
Process the optional/required start tag specification.
Process a parameter entity declaration and store it in the DTD.
Eat all the tokens until we get a MarkupDeclEnd, and ignore the rest of this declaration.
Figure out what kind of markup declaration we've got (e.g. ELEMENT, ATTLIST, ...).
This signal is used to forward the end of data signal to the SgmlLexer.
This signal is emitted when both the DTD has been parsed.
This signal is used to forward the end of data signal to the SgmlLexer.