doctokenizer.h File Reference

#include <qstring.h>
#include <qlist.h>
#include "htmlattrib.h"

Go to the source code of this file.

Classes

struct  TokenInfo

Enumerations

enum  Tokens {
  TK_WORD = 1, TK_LNKWORD = 2, TK_WHITESPACE = 3, TK_LISTITEM = 4,
  TK_ENDLIST = 5, TK_COMMAND = 6, TK_HTMLTAG = 7, TK_SYMBOL = 8,
  TK_NEWPARA = 9, TK_RCSTAG = 10, TK_URL = 11, RetVal_OK = 0x10000,
  RetVal_SimpleSec = 0x10001, RetVal_ListItem = 0x10002, RetVal_Section = 0x10003, RetVal_Subsection = 0x10004,
  RetVal_Subsubsection = 0x10005, RetVal_Paragraph = 0x10006, RetVal_EndList = 0x10007, RetVal_EndPre = 0x10008,
  RetVal_DescData = 0x10009, RetVal_DescTitle = 0x1000A, RetVal_EndDesc = 0x1000B, RetVal_TableRow = 0x1000C,
  RetVal_TableCell = 0x1000D, RetVal_TableHCell = 0x1000E, RetVal_EndTable = 0x1000F, RetVal_Internal = 0x10010,
  RetVal_SwitchLang = 0x10011, RetVal_CloseXml = 0x10012
}

Functions

const char * tokToString (int token)
void doctokenizerYYFindSections (const char *input, Definition *d, MemberGroup *mg, const char *fileName)
void doctokenizerYYinit (const char *input, const char *fileName)
void doctokenizerYYcleanup ()
void doctokenizerYYpushContext ()
bool doctokenizerYYpopContext ()
int doctokenizerYYlex ()
void doctokenizerYYsetStatePara ()
void doctokenizerYYsetStateTitle ()
void doctokenizerYYsetStateTitleAttrValue ()
void doctokenizerYYsetStateCode ()
void doctokenizerYYsetStateXmlCode ()
void doctokenizerYYsetStateHtmlOnly ()
void doctokenizerYYsetStateManOnly ()
void doctokenizerYYsetStateLatexOnly ()
void doctokenizerYYsetStateXmlOnly ()
void doctokenizerYYsetStateVerbatim ()
void doctokenizerYYsetStateDot ()
void doctokenizerYYsetStateMsc ()
void doctokenizerYYsetStateParam ()
void doctokenizerYYsetStateXRefItem ()
void doctokenizerYYsetStateFile ()
void doctokenizerYYsetStatePattern ()
void doctokenizerYYsetStateLink ()
void doctokenizerYYsetStateRef ()
void doctokenizerYYsetStateInternalRef ()
void doctokenizerYYsetStateText ()
void doctokenizerYYsetStateSkipTitle ()
void doctokenizerYYsetInsidePre (bool b)
void doctokenizerYYpushBackHtmlTag (const char *tag)

Variables

TokenInfog_token
int doctokenizerYYlineno
FILE * doctokenizerYYin


Enumeration Type Documentation

enum Tokens

Enumerator:
TK_WORD 
TK_LNKWORD 
TK_WHITESPACE 
TK_LISTITEM 
TK_ENDLIST 
TK_COMMAND 
TK_HTMLTAG 
TK_SYMBOL 
TK_NEWPARA 
TK_RCSTAG 
TK_URL 
RetVal_OK 
RetVal_SimpleSec 
RetVal_ListItem 
RetVal_Section 
RetVal_Subsection 
RetVal_Subsubsection 
RetVal_Paragraph 
RetVal_EndList 
RetVal_EndPre 
RetVal_DescData 
RetVal_DescTitle 
RetVal_EndDesc 
RetVal_TableRow 
RetVal_TableCell 
RetVal_TableHCell 
RetVal_EndTable 
RetVal_Internal 
RetVal_SwitchLang 
RetVal_CloseXml 

Definition at line 29 of file doctokenizer.h.


Function Documentation

void doctokenizerYYcleanup (  ) 

Definition at line 8736 of file doctokenizer.cpp.

References doctokenizerYY_delete_buffer(), and YY_CURRENT_BUFFER.

void doctokenizerYYFindSections ( const char *  input,
Definition d,
MemberGroup mg,
const char *  fileName 
)

Definition at line 8598 of file doctokenizer.cpp.

References BEGIN, doctokenizerYYlex(), and St_Sections.

Referenced by docFindSections().

void doctokenizerYYinit ( const char *  input,
const char *  fileName 
)

Definition at line 8613 of file doctokenizer.cpp.

References BEGIN, and St_Para.

Referenced by validatingParseDoc(), and validatingParseText().

int doctokenizerYYlex (  ) 

bool doctokenizerYYpopContext (  ) 

Definition at line 5902 of file doctokenizer.cpp.

References BEGIN, doctokenizerYY_delete_buffer(), doctokenizerYY_switch_to_buffer(), DocLexerContext::inputPos, DocLexerContext::inputString, DocLexerContext::rule, DocLexerContext::state, and YY_CURRENT_BUFFER.

void doctokenizerYYpushBackHtmlTag ( const char *  tag  ) 

Definition at line 8746 of file doctokenizer.cpp.

References QCString, and unput.

Referenced by DocHtmlRow::parse(), DocHtmlDescList::parse(), DocHtmlList::parse(), DocHtmlRow::parseXml(), and DocHtmlList::parseXml().

void doctokenizerYYpushContext (  ) 

Definition at line 5890 of file doctokenizer.cpp.

References doctokenizerYY_create_buffer(), doctokenizerYY_switch_to_buffer(), doctokenizerYYin, g_token, DocLexerContext::inputPos, DocLexerContext::inputString, DocLexerContext::rule, DocLexerContext::state, DocLexerContext::token, YY_BUF_SIZE, YY_CURRENT_BUFFER, and YY_START.

void doctokenizerYYsetInsidePre ( bool  b  ) 

Definition at line 8741 of file doctokenizer.cpp.

void doctokenizerYYsetStateCode (  ) 

Definition at line 8637 of file doctokenizer.cpp.

References BEGIN, g_token, St_Code, and TokenInfo::verb.

Referenced by DocPara::handleCommand().

void doctokenizerYYsetStateDot (  ) 

Definition at line 8679 of file doctokenizer.cpp.

References BEGIN, g_token, St_Dot, and TokenInfo::verb.

Referenced by DocPara::handleCommand().

void doctokenizerYYsetStateFile (  ) 

Definition at line 8701 of file doctokenizer.cpp.

References BEGIN, and St_File.

Referenced by DocPara::handleDotFile(), DocPara::handleImage(), and DocPara::handleInclude().

void doctokenizerYYsetStateHtmlOnly (  ) 

Definition at line 8649 of file doctokenizer.cpp.

References BEGIN, g_token, St_HtmlOnly, and TokenInfo::verb.

Referenced by DocPara::handleCommand().

void doctokenizerYYsetStateInternalRef (  ) 

Definition at line 8721 of file doctokenizer.cpp.

References BEGIN, and St_IntRef.

void doctokenizerYYsetStateLatexOnly (  ) 

Definition at line 8667 of file doctokenizer.cpp.

References BEGIN, g_token, St_LatexOnly, and TokenInfo::verb.

Referenced by DocPara::handleCommand().

void doctokenizerYYsetStateLink (  ) 

Definition at line 8711 of file doctokenizer.cpp.

References BEGIN, and St_Link.

Referenced by DocPara::handleLink(), and DocHtmlDescTitle::parse().

void doctokenizerYYsetStateManOnly (  ) 

Definition at line 8655 of file doctokenizer.cpp.

References BEGIN, g_token, St_ManOnly, and TokenInfo::verb.

Referenced by DocPara::handleCommand().

void doctokenizerYYsetStateMsc (  ) 

Definition at line 8685 of file doctokenizer.cpp.

References BEGIN, g_token, St_Msc, and TokenInfo::verb.

Referenced by DocPara::handleCommand().

void doctokenizerYYsetStatePara (  ) 

Definition at line 8622 of file doctokenizer.cpp.

References BEGIN, and St_Para.

Referenced by DocPara::handleCommand(), DocPara::handleDotFile(), DocPara::handleHtmlStartTag(), DocPara::handleImage(), DocPara::handleInclude(), DocPara::handleIncludeOperator(), DocPara::handleLink(), DocPara::handleRef(), DocPara::handleSection(), DocPara::handleStartCode(), DocPara::handleXRefItem(), DocSecRefItem::parse(), DocDotFile::parse(), DocImage::parse(), DocIndexEntry::parse(), DocHtmlDescTitle::parse(), DocTitle::parse(), DocParamList::parse(), and DocRoot::parse().

void doctokenizerYYsetStateParam (  ) 

Definition at line 8691 of file doctokenizer.cpp.

References BEGIN, and St_Param.

Referenced by DocParamList::parse().

void doctokenizerYYsetStatePattern (  ) 

Definition at line 8706 of file doctokenizer.cpp.

References BEGIN, and St_Pattern.

Referenced by DocPara::handleIncludeOperator().

void doctokenizerYYsetStateRef (  ) 

Definition at line 8716 of file doctokenizer.cpp.

References BEGIN, and St_Ref.

Referenced by DocPara::handleRef(), and DocHtmlDescTitle::parse().

void doctokenizerYYsetStateSkipTitle (  ) 

Definition at line 8731 of file doctokenizer.cpp.

References BEGIN, and St_SkipTitle.

Referenced by DocPara::handleSection().

void doctokenizerYYsetStateText (  ) 

Definition at line 8726 of file doctokenizer.cpp.

References BEGIN, and St_Text.

Referenced by DocText::parse().

void doctokenizerYYsetStateTitle (  ) 

Definition at line 8627 of file doctokenizer.cpp.

References BEGIN, and St_Title.

Referenced by DocSecRefItem::parse(), DocDotFile::parse(), DocImage::parse(), DocIndexEntry::parse(), and DocTitle::parse().

void doctokenizerYYsetStateTitleAttrValue (  ) 

Definition at line 8632 of file doctokenizer.cpp.

References BEGIN, and St_TitleV.

Referenced by DocImage::parse().

void doctokenizerYYsetStateVerbatim (  ) 

Definition at line 8673 of file doctokenizer.cpp.

References BEGIN, g_token, St_Verbatim, and TokenInfo::verb.

Referenced by DocPara::handleCommand().

void doctokenizerYYsetStateXmlCode (  ) 

Definition at line 8643 of file doctokenizer.cpp.

References BEGIN, g_token, St_XmlCode, and TokenInfo::verb.

Referenced by DocPara::handleHtmlStartTag().

void doctokenizerYYsetStateXmlOnly (  ) 

Definition at line 8661 of file doctokenizer.cpp.

References BEGIN, g_token, St_XmlOnly, and TokenInfo::verb.

Referenced by DocPara::handleCommand().

void doctokenizerYYsetStateXRefItem (  ) 

Definition at line 8696 of file doctokenizer.cpp.

References BEGIN, and St_XRefItem.

Referenced by DocPara::handleXRefItem().

const char* tokToString ( int  token  ) 

Definition at line 5918 of file doctokenizer.cpp.

References TK_COMMAND, TK_ENDLIST, TK_HTMLTAG, TK_LISTITEM, TK_LNKWORD, TK_NEWPARA, TK_RCSTAG, TK_SYMBOL, TK_URL, TK_WHITESPACE, and TK_WORD.

Referenced by DocPara::handleCommand(), DocPara::handleDotFile(), DocPara::handleImage(), DocPara::handleInclude(), DocPara::handleIncludeOperator(), DocPara::handleLink(), DocPara::handleRef(), DocPara::handleSection(), DocSecRefItem::parse(), DocSecRefList::parse(), DocInternalRef::parse(), DocRef::parse(), DocLink::parse(), DocDotFile::parse(), DocImage::parse(), DocHtmlHeader::parse(), DocHRef::parse(), DocIndexEntry::parse(), DocHtmlCaption::parse(), DocHtmlRow::parse(), DocHtmlTable::parse(), DocHtmlDescTitle::parse(), DocHtmlDescList::parse(), DocHtmlList::parse(), DocTitle::parse(), DocPara::parse(), DocText::parse(), DocHtmlRow::parseXml(), and DocHtmlList::parseXml().


Variable Documentation

FILE* doctokenizerYYin

Definition at line 356 of file doctokenizer.cpp.

int doctokenizerYYlineno

Definition at line 362 of file doctokenizer.cpp.

TokenInfo* g_token

Definition at line 5863 of file doctokenizer.cpp.

Referenced by doctokenizerYYpushContext(), doctokenizerYYsetStateCode(), doctokenizerYYsetStateDot(), doctokenizerYYsetStateHtmlOnly(), doctokenizerYYsetStateLatexOnly(), doctokenizerYYsetStateManOnly(), doctokenizerYYsetStateMsc(), doctokenizerYYsetStateVerbatim(), doctokenizerYYsetStateXmlCode(), doctokenizerYYsetStateXmlOnly(), DocPara::handleCommand(), DocPara::handleDotFile(), DocPara::handleHtmlStartTag(), DocPara::handleImage(), DocPara::handleInclude(), DocPara::handleIncludeOperator(), DocPara::handleLink(), DocPara::handleRef(), DocPara::handleSection(), DocPara::handleStartCode(), DocPara::handleXRefItem(), DocPara::injectToken(), DocSecRefItem::parse(), DocSecRefList::parse(), DocInternalRef::parse(), DocRef::parse(), DocLink::parse(), DocDotFile::parse(), DocImage::parse(), DocHtmlHeader::parse(), DocHRef::parse(), DocInternal::parse(), DocIndexEntry::parse(), DocHtmlCaption::parse(), DocHtmlCell::parse(), DocHtmlRow::parse(), DocHtmlTable::parse(), DocHtmlDescTitle::parse(), DocHtmlDescData::parse(), DocHtmlDescList::parse(), DocHtmlList::parse(), DocAutoList::parse(), DocTitle::parse(), DocParamList::parse(), DocPara::parse(), DocSection::parse(), DocText::parse(), DocRoot::parse(), DocSimpleSect::parseRcs(), DocHtmlCell::parseXml(), DocHtmlRow::parseXml(), DocHtmlTable::parseXml(), DocHtmlList::parseXml(), and DocParamList::parseXml().



Generated on Mon Mar 31 10:58:52 2008 by  doxygen 1.5.1