Doxygen
Loading...
Searching...
No Matches
DocTokenizer Class Reference

#include <src/doctokenizer.h>

Classes

class  AutoSaveState
struct  Private

Public Member Functions

 DocTokenizer ()
 ~DocTokenizer ()
TokenInfo * token ()
TokenInfo * resetToken ()
void setFileName (const DString &fileName)
DString getFileName () const
void setLineNr (int lineno)
int getLineNr () const
void findSections (const DString &input, const Definition *d, const DString &fileName)
void init (const char *input, const DString &fileName, bool markdownSupport, bool insideHtmlLink)
void cleanup ()
Token lex ()
void unputString (const DString &tag)
void setStatePara ()
void setStateTitle ()
void setStateTitleAttrValue ()
void setStateCode ()
void setStateICode ()
void setStateXmlCode ()
void setStateHtmlOnly ()
void setStateManOnly ()
void setStateLatexOnly ()
void setStateXmlOnly ()
void setStateDbOnly ()
void setStateRtfOnly ()
void setStateVerbatim ()
void setStateIVerbatim ()
void setStateILiteral ()
void setStateILiteralOpt ()
void setStateDot ()
void setStateMsc ()
void setStateParam ()
void setStateXRefItem ()
void setStateFile ()
void setStateIFile ()
void setStatePattern ()
void setStateLink ()
void setStateCite ()
void setStateDoxyConfig ()
void setStateRef ()
void setStateInternalRef ()
void setStateText ()
void setStateSkipTitle ()
void setStateAnchor ()
void setInsidePre (bool b)
void pushBackHtmlTag (const DString &tag)
void setStateSnippet ()
void startAutoList ()
void endAutoList ()
void setStatePlantUML ()
void setStateMermaid ()
void setStateSetScope ()
void setStatePlantUMLOpt ()
void setStateMermaidOpt ()
void setStateOptions ()
void setStateBlock ()
void setStateEmoji ()
void setStateILine ()
void setStateQuotedString ()
void setStateShowDate ()
void setStatePrefix ()

Private Member Functions

void pushState ()
void popState ()
void pushContext ()
bool popContext ()

Private Attributes

std::unique_ptr< Private > p

Friends

class AutoSaveState
class DocParser

Detailed Description

Definition at line 180 of file doctokenizer.h.

Constructor & Destructor Documentation

◆ DocTokenizer()

DocTokenizer::DocTokenizer ( )

Definition at line 1842 of file doctokenizer.l.

1842 : p(std::make_unique<Private>())
1843{
1844 //printf("%p:DocTokenizer::DocTokenizer()\n",(void*)this);
1845 doctokenizerYYlex_init_extra(&p->extra,&p->yyscanner);
1846#ifdef FLEX_DEBUG
1847 doctokenizerYYset_debug(Debug::isFlagSet(Debug::Lex_doctokenizer)?1:0,p->yyscanner);
1848#endif
1849}
@ Lex_doctokenizer
Definition debug.h:61
static bool isFlagSet(const DebugMask mask)
Definition debug.cpp:132
std::unique_ptr< Private > p

References Debug::isFlagSet(), Debug::Lex_doctokenizer, and p.

Referenced by DocTokenizer::AutoSaveState::AutoSaveState().

◆ ~DocTokenizer()

DocTokenizer::~DocTokenizer ( )

Definition at line 1851 of file doctokenizer.l.

1852{
1853 //printf("%p:DocTokenizer::~DocTokenizer()\n",(void*)this);
1854 doctokenizerYYlex_destroy(p->yyscanner);
1855}

References p.

Member Function Documentation

◆ cleanup()

void DocTokenizer::cleanup ( )

Definition at line 2257 of file doctokenizer.l.

2258{
2259 yyscan_t yyscanner = p->yyscanner;
2260 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2261 yy_delete_buffer( YY_CURRENT_BUFFER, yyscanner );
2262}
yyguts_t * yyscan_t
Definition code.l:25
#define yyguts_t
Definition code.l:23

References p, and yyguts_t.

◆ endAutoList()

void DocTokenizer::endAutoList ( )

Definition at line 2292 of file doctokenizer.l.

2293{
2294 yyscan_t yyscanner = p->yyscanner;
2295 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2296 yyextra->autoListLevel--;
2297}

References p, and yyguts_t.

Referenced by DocAutoList::parse().

◆ findSections()

void DocTokenizer::findSections ( const DString & input,
const Definition * d,
const DString & fileName )

Definition at line 1869 of file doctokenizer.l.

1871{
1872 yyscan_t yyscanner = p->yyscanner;
1873 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1874
1875 if (input.empty()) return;
1876 DebugLex debugLex(Debug::Lex_doctokenizer, __FILE__, qPrint(fileName));
1877 yyextra->inputString = input.data();
1878 //printf("parsing --->'%s'<---\n",input);
1879 yyextra->inputPos = 0;
1880 yyextra->definition = d;
1881 yyextra->fileName = fileName;
1882 BEGIN(St_Sections);
1883 yyextra->yyLineNr = 1;
1884 doctokenizerYYlex(yyscanner);
1885}
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
Definition dstring.h:148
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition dstring.h:157
const char * qPrint(const char *s)
Definition dstring.h:783

References DString::data(), DString::empty(), Debug::Lex_doctokenizer, p, qPrint(), and yyguts_t.

Referenced by docFindSections().

◆ getFileName()

DString DocTokenizer::getFileName ( ) const

Definition at line 2306 of file doctokenizer.l.

2307{
2308 yyscan_t yyscanner = p->yyscanner;
2309 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2310 return yyextra->fileName;
2311}

References p, and yyguts_t.

Referenced by DocParser::pushContext().

◆ getLineNr()

◆ init()

void DocTokenizer::init ( const char * input,
const DString & fileName,
bool markdownSupport,
bool insideHtmlLink )

Definition at line 1887 of file doctokenizer.l.

1888{
1889 yyscan_t yyscanner = p->yyscanner;
1890 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1891 yyextra->autoListLevel = 0;
1892 yyextra->inputString = input;
1893 yyextra->inputPos = 0;
1894 yyextra->fileName = fileName;
1895 yyextra->insidePre = false;
1896 yyextra->markdownSupport = markdownSupport;
1897 yyextra->insideHtmlLink = insideHtmlLink;
1898 BEGIN(St_Para);
1899}

References p, and yyguts_t.

Referenced by DocParser::internalValidatingParseDoc(), validatingParseDoc(), and validatingParseText().

◆ lex()

◆ popContext()

bool DocTokenizer::popContext ( )
private

Definition at line 1821 of file doctokenizer.l.

1822{
1823 yyscan_t yyscanner = p->yyscanner;
1824 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1825 //printf("DocTokenizer::popContext() stack=%zu\n",yyextra->lexerStack.size());
1826 if (yyextra->lexerStack.empty()) return false;
1827 const auto &ctx = yyextra->lexerStack.top();
1828 yyextra->autoListLevel = ctx->autoListLevel;
1829 yyextra->inputPos = ctx->inputPos;
1830 yyextra->inputString = ctx->inputString;
1831 yyextra->token = ctx->token;
1832
1833 yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner);
1834 yy_switch_to_buffer(ctx->state, yyscanner);
1835
1836 BEGIN(ctx->rule);
1837 yyextra->lexerStack.pop();
1838 return true;
1839}

References p, and yyguts_t.

Referenced by DocParser::popContext().

◆ popState()

void DocTokenizer::popState ( )
private

Definition at line 2334 of file doctokenizer.l.

2335{
2336 yyscan_t yyscanner = p->yyscanner;
2337 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2338 ASSERT(!yyextra->stateStack.empty());
2339 BEGIN(yyextra->stateStack.top());
2340 yyextra->stateStack.pop();
2341}
#define ASSERT(x)
Definition message.h:142

References ASSERT, p, and yyguts_t.

Referenced by DocTokenizer::AutoSaveState::~AutoSaveState().

◆ pushBackHtmlTag()

void DocTokenizer::pushBackHtmlTag ( const DString & tag)

Definition at line 2271 of file doctokenizer.l.

2272{
2273 yyscan_t yyscanner = p->yyscanner;
2274 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2275 DString tagName = tag;
2276 int l = static_cast<int>(tagName.length());
2277 unput('>');
2278 for (int i=l-1;i>=0;i--)
2279 {
2280 unput(tag[i]);
2281 }
2282 unput('<');
2283}
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition dstring.h:151

References DString::length(), p, and yyguts_t.

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

◆ pushContext()

void DocTokenizer::pushContext ( )
private

Definition at line 1806 of file doctokenizer.l.

1807{
1808 yyscan_t yyscanner = p->yyscanner;
1809 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1810 //printf("DocTokenizer::pushContext() stack=%zu\n",yyextra->lexerStack.size());
1811 yyextra->lexerStack.push(
1812 std::make_unique<DocLexerContext>(
1813 yyextra->token,YY_START,
1814 yyextra->autoListLevel,
1815 yyextra->inputPos,
1816 yyextra->inputString,
1817 YY_CURRENT_BUFFER));
1818 yy_switch_to_buffer(yy_create_buffer(0, YY_BUF_SIZE, yyscanner), yyscanner);
1819}
#define YY_BUF_SIZE
Definition commentcnv.l:19

References p, YY_BUF_SIZE, and yyguts_t.

Referenced by DocParser::pushContext().

◆ pushState()

void DocTokenizer::pushState ( )
private

Definition at line 2327 of file doctokenizer.l.

2328{
2329 yyscan_t yyscanner = p->yyscanner;
2330 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2331 yyextra->stateStack.push(YYSTATE);
2332}

References p, and yyguts_t.

Referenced by DocTokenizer::AutoSaveState::AutoSaveState().

◆ resetToken()

TokenInfo * DocTokenizer::resetToken ( )

Definition at line 1908 of file doctokenizer.l.

1909{
1910 yyscan_t yyscanner = p->yyscanner;
1911 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1912 yyextra->token = TokenInfo();
1913 return &yyextra->token;
1914}

References p, and yyguts_t.

Referenced by validatingParseDoc(), validatingParseText(), and validatingParseTitle().

◆ setFileName()

void DocTokenizer::setFileName ( const DString & fileName)

Definition at line 2299 of file doctokenizer.l.

2300{
2301 yyscan_t yyscanner = p->yyscanner;
2302 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2303 yyextra->fileName = fileName;
2304}

References p, and yyguts_t.

Referenced by createRef(), DocParser::popContext(), and validatingParseDoc().

◆ setInsidePre()

void DocTokenizer::setInsidePre ( bool b)

Definition at line 2264 of file doctokenizer.l.

2265{
2266 yyscan_t yyscanner = p->yyscanner;
2267 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2268 yyextra->insidePre = b;
2269}

References p, and yyguts_t.

Referenced by DocPara::handleHtmlEndTag(), and DocPara::handleHtmlStartTag().

◆ setLineNr()

void DocTokenizer::setLineNr ( int lineno)

Definition at line 2313 of file doctokenizer.l.

2314{
2315 yyscan_t yyscanner = p->yyscanner;
2316 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2317 yyextra->yyLineNr = lineno;
2318}

References p, and yyguts_t.

Referenced by createRef(), DocParser::popContext(), validatingParseDoc(), and validatingParseText().

◆ setStateAnchor()

void DocTokenizer::setStateAnchor ( )

Definition at line 2182 of file doctokenizer.l.

2183{
2184 yyscan_t yyscanner = p->yyscanner;
2185 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2186 BEGIN(St_Anchor);
2187}

References p, and yyguts_t.

Referenced by DocParser::handleAnchor().

◆ setStateBlock()

void DocTokenizer::setStateBlock ( )

Definition at line 2220 of file doctokenizer.l.

2221{
2222 yyscan_t yyscanner = p->yyscanner;
2223 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2224 yyextra->token.name="";
2225 BEGIN(St_Block);
2226}

References p, and yyguts_t.

Referenced by DocPara::handleInclude().

◆ setStateCite()

void DocTokenizer::setStateCite ( )

Definition at line 2139 of file doctokenizer.l.

2140{
2141 yyscan_t yyscanner = p->yyscanner;
2142 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2143 BEGIN(St_Cite);
2144}

References p, and yyguts_t.

Referenced by DocParser::handleCite().

◆ setStateCode()

void DocTokenizer::setStateCode ( )

Definition at line 1938 of file doctokenizer.l.

1939{
1940 yyscan_t yyscanner = p->yyscanner;
1941 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1942 yyextra->token.verb="";
1943 yyextra->token.name="";
1944 BEGIN(St_CodeOpt);
1945}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStateDbOnly()

void DocTokenizer::setStateDbOnly ( )

Definition at line 1998 of file doctokenizer.l.

1999{
2000 yyscan_t yyscanner = p->yyscanner;
2001 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2002 yyextra->token.verb="";
2003 BEGIN(St_DbOnly);
2004}

References p, and yyguts_t.

Referenced by DocParser::defaultHandleToken(), and DocPara::handleCommand().

◆ setStateDot()

void DocTokenizer::setStateDot ( )

Definition at line 2046 of file doctokenizer.l.

2047{
2048 yyscan_t yyscanner = p->yyscanner;
2049 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2050 yyextra->token.verb="";
2051 BEGIN(St_Dot);
2052}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStateDoxyConfig()

void DocTokenizer::setStateDoxyConfig ( )

Definition at line 2146 of file doctokenizer.l.

2147{
2148 yyscan_t yyscanner = p->yyscanner;
2149 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2150 BEGIN(St_DoxyConfig);
2151}

References p, and yyguts_t.

Referenced by DocPara::handleDoxyConfig().

◆ setStateEmoji()

void DocTokenizer::setStateEmoji ( )

Definition at line 2228 of file doctokenizer.l.

2229{
2230 yyscan_t yyscanner = p->yyscanner;
2231 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2232 yyextra->token.name="";
2233 BEGIN(St_Emoji);
2234}

References p, and yyguts_t.

Referenced by DocPara::handleEmoji().

◆ setStateFile()

void DocTokenizer::setStateFile ( )

Definition at line 2110 of file doctokenizer.l.

2111{
2112 yyscan_t yyscanner = p->yyscanner;
2113 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2114 BEGIN(St_File);
2115}

References p, and yyguts_t.

Referenced by DocPara::handleFile(), DocParser::handleImage(), and DocPara::handleInclude().

◆ setStateHtmlOnly()

void DocTokenizer::setStateHtmlOnly ( )

Definition at line 1965 of file doctokenizer.l.

1966{
1967 yyscan_t yyscanner = p->yyscanner;
1968 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1969 yyextra->token.verb="";
1970 yyextra->token.name="";
1971 BEGIN(St_HtmlOnlyOption);
1972}

References p, and yyguts_t.

Referenced by DocParser::defaultHandleToken(), and DocPara::handleCommand().

◆ setStateICode()

void DocTokenizer::setStateICode ( )

Definition at line 1947 of file doctokenizer.l.

1948{
1949 yyscan_t yyscanner = p->yyscanner;
1950 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1951 yyextra->token.verb="";
1952 yyextra->token.name="";
1953 BEGIN(St_iCodeOpt);
1954}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStateIFile()

void DocTokenizer::setStateIFile ( )

Definition at line 2117 of file doctokenizer.l.

2118{
2119 yyscan_t yyscanner = p->yyscanner;
2120 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2121 BEGIN(St_IFile);
2122}

References p, and yyguts_t.

Referenced by DocParser::handleIFile().

◆ setStateILine()

void DocTokenizer::setStateILine ( )

Definition at line 2236 of file doctokenizer.l.

2237{
2238 yyscan_t yyscanner = p->yyscanner;
2239 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2240 BEGIN(St_ILine);
2241}

References p, and yyguts_t.

Referenced by DocParser::handleILine(), and skipSpacesForTable().

◆ setStateILiteral()

void DocTokenizer::setStateILiteral ( )

Definition at line 2014 of file doctokenizer.l.

2015{
2016 yyscan_t yyscanner = p->yyscanner;
2017 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2018 yyextra->token.verb="";
2019 BEGIN(St_ILiteral);
2020}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStateILiteralOpt()

void DocTokenizer::setStateILiteralOpt ( )

Definition at line 2022 of file doctokenizer.l.

2023{
2024 yyscan_t yyscanner = p->yyscanner;
2025 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2026 yyextra->token.verb="";
2027 BEGIN(St_ILiteralOpt);
2028}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStateInternalRef()

void DocTokenizer::setStateInternalRef ( )

Definition at line 2161 of file doctokenizer.l.

2162{
2163 yyscan_t yyscanner = p->yyscanner;
2164 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2165 BEGIN(St_IntRef);
2166}

References p, and yyguts_t.

Referenced by DocParser::handleInternalRef().

◆ setStateIVerbatim()

void DocTokenizer::setStateIVerbatim ( )

Definition at line 2038 of file doctokenizer.l.

2039{
2040 yyscan_t yyscanner = p->yyscanner;
2041 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2042 yyextra->token.verb="";
2043 BEGIN(St_iVerbatim);
2044}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStateLatexOnly()

void DocTokenizer::setStateLatexOnly ( )

Definition at line 2006 of file doctokenizer.l.

2007{
2008 yyscan_t yyscanner = p->yyscanner;
2009 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2010 yyextra->token.verb="";
2011 BEGIN(St_LatexOnly);
2012}

References p, and yyguts_t.

Referenced by DocParser::defaultHandleToken(), and DocPara::handleCommand().

◆ setStateLink()

void DocTokenizer::setStateLink ( )

Definition at line 2132 of file doctokenizer.l.

2133{
2134 yyscan_t yyscanner = p->yyscanner;
2135 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2136 BEGIN(St_Link);
2137}

References p, and yyguts_t.

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

◆ setStateManOnly()

void DocTokenizer::setStateManOnly ( )

Definition at line 1974 of file doctokenizer.l.

1975{
1976 yyscan_t yyscanner = p->yyscanner;
1977 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1978 yyextra->token.verb="";
1979 BEGIN(St_ManOnly);
1980}

References p, and yyguts_t.

Referenced by DocParser::defaultHandleToken(), and DocPara::handleCommand().

◆ setStateMermaid()

void DocTokenizer::setStateMermaid ( )

Definition at line 2088 of file doctokenizer.l.

2089{
2090 yyscan_t yyscanner = p->yyscanner;
2091 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2092 yyextra->token.verb="";
2093 BEGIN(St_Mermaid);
2094}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStateMermaidOpt()

void DocTokenizer::setStateMermaidOpt ( )

Definition at line 2079 of file doctokenizer.l.

2080{
2081 yyscan_t yyscanner = p->yyscanner;
2082 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2083 yyextra->token.verb="";
2084 yyextra->token.sectionId="";
2085 BEGIN(St_MermaidOpt);
2086}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStateMsc()

void DocTokenizer::setStateMsc ( )

Definition at line 2054 of file doctokenizer.l.

2055{
2056 yyscan_t yyscanner = p->yyscanner;
2057 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2058 yyextra->token.verb="";
2059 BEGIN(St_Msc);
2060}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStateOptions()

void DocTokenizer::setStateOptions ( )

Definition at line 2212 of file doctokenizer.l.

2213{
2214 yyscan_t yyscanner = p->yyscanner;
2215 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2216 yyextra->token.name="";
2217 BEGIN(St_Options);
2218}

References p, and yyguts_t.

Referenced by DocParser::handleCite(), DocParser::handleImage(), and DocPara::handleInclude().

◆ setStatePara()

◆ setStateParam()

void DocTokenizer::setStateParam ( )

Definition at line 2096 of file doctokenizer.l.

2097{
2098 yyscan_t yyscanner = p->yyscanner;
2099 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2100 BEGIN(St_Param);
2101}

References p, and yyguts_t.

Referenced by DocParamList::parse().

◆ setStatePattern()

void DocTokenizer::setStatePattern ( )

Definition at line 2124 of file doctokenizer.l.

2125{
2126 yyscan_t yyscanner = p->yyscanner;
2127 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2128 yyextra->token.name = "";
2129 BEGIN(St_Pattern);
2130}

References p, and yyguts_t.

Referenced by DocPara::handleIncludeOperator().

◆ setStatePlantUML()

void DocTokenizer::setStatePlantUML ( )

Definition at line 2071 of file doctokenizer.l.

2072{
2073 yyscan_t yyscanner = p->yyscanner;
2074 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2075 yyextra->token.verb="";
2076 BEGIN(St_PlantUML);
2077}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStatePlantUMLOpt()

void DocTokenizer::setStatePlantUMLOpt ( )

Definition at line 2062 of file doctokenizer.l.

2063{
2064 yyscan_t yyscanner = p->yyscanner;
2065 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2066 yyextra->token.verb="";
2067 yyextra->token.sectionId="";
2068 BEGIN(St_PlantUMLOpt);
2069}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStatePrefix()

void DocTokenizer::setStatePrefix ( )

Definition at line 2189 of file doctokenizer.l.

2190{
2191 yyscan_t yyscanner = p->yyscanner;
2192 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2193 BEGIN(St_Prefix);
2194}

References p, and yyguts_t.

Referenced by DocParser::handlePrefix().

◆ setStateQuotedString()

void DocTokenizer::setStateQuotedString ( )

Definition at line 2243 of file doctokenizer.l.

2244{
2245 yyscan_t yyscanner = p->yyscanner;
2246 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2247 BEGIN(St_QuotedString);
2248}

References p, and yyguts_t.

Referenced by DocPara::handleShowDate().

◆ setStateRef()

void DocTokenizer::setStateRef ( )

Definition at line 2153 of file doctokenizer.l.

2154{
2155 yyscan_t yyscanner = p->yyscanner;
2156 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2157 yyextra->expectQuote=false;
2158 BEGIN(St_Ref);
2159}

References p, and yyguts_t.

Referenced by DocParser::handleRef(), DocHtmlCaption::parse(), and DocHtmlDescTitle::parse().

◆ setStateRtfOnly()

void DocTokenizer::setStateRtfOnly ( )

Definition at line 1982 of file doctokenizer.l.

1983{
1984 yyscan_t yyscanner = p->yyscanner;
1985 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1986 yyextra->token.verb="";
1987 BEGIN(St_RtfOnly);
1988}

References p, and yyguts_t.

Referenced by DocParser::defaultHandleToken(), and DocPara::handleCommand().

◆ setStateSetScope()

void DocTokenizer::setStateSetScope ( )

Definition at line 2205 of file doctokenizer.l.

2206{
2207 yyscan_t yyscanner = p->yyscanner;
2208 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2209 BEGIN(St_SetScope);
2210}

References p, and yyguts_t.

Referenced by DocParser::defaultHandleToken(), and DocPara::handleCommand().

◆ setStateShowDate()

void DocTokenizer::setStateShowDate ( )

Definition at line 2250 of file doctokenizer.l.

2251{
2252 yyscan_t yyscanner = p->yyscanner;
2253 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2254 BEGIN(St_ShowDate);
2255}

References p, and yyguts_t.

Referenced by DocPara::handleShowDate().

◆ setStateSkipTitle()

void DocTokenizer::setStateSkipTitle ( )

Definition at line 2175 of file doctokenizer.l.

2176{
2177 yyscan_t yyscanner = p->yyscanner;
2178 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2179 BEGIN(St_SkipTitle);
2180}

References p, and yyguts_t.

Referenced by DocPara::handleSection().

◆ setStateSnippet()

void DocTokenizer::setStateSnippet ( )

Definition at line 2196 of file doctokenizer.l.

2197{
2198 yyscan_t yyscanner = p->yyscanner;
2199 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2200 yyextra->token.name="";
2201 yyextra->snippetRtn=0;
2202 BEGIN(St_Snippet);
2203}

References p, and yyguts_t.

Referenced by DocPara::handleInclude().

◆ setStateText()

void DocTokenizer::setStateText ( )

Definition at line 2168 of file doctokenizer.l.

2169{
2170 yyscan_t yyscanner = p->yyscanner;
2171 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2172 BEGIN(St_Text);
2173}

References p, and yyguts_t.

Referenced by DocText::parse().

◆ setStateTitle()

void DocTokenizer::setStateTitle ( )

Definition at line 1924 of file doctokenizer.l.

1925{
1926 yyscan_t yyscanner = p->yyscanner;
1927 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1928 BEGIN(St_Title);
1929}

References p, and yyguts_t.

Referenced by DocParser::defaultHandleTitleAndSize(), DocHtmlSummary::parse(), DocIndexEntry::parse(), DocSecRefItem::parse(), DocTitle::parse(), and DocVhdlFlow::parse().

◆ setStateTitleAttrValue()

void DocTokenizer::setStateTitleAttrValue ( )

Definition at line 1931 of file doctokenizer.l.

1932{
1933 yyscan_t yyscanner = p->yyscanner;
1934 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1935 BEGIN(St_TitleV);
1936}

References p, and yyguts_t.

Referenced by DocParser::defaultHandleTitleAndSize().

◆ setStateVerbatim()

void DocTokenizer::setStateVerbatim ( )

Definition at line 2030 of file doctokenizer.l.

2031{
2032 yyscan_t yyscanner = p->yyscanner;
2033 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2034 yyextra->token.verb="";
2035 BEGIN(St_Verbatim);
2036}

References p, and yyguts_t.

Referenced by DocPara::handleCommand().

◆ setStateXmlCode()

void DocTokenizer::setStateXmlCode ( )

Definition at line 1956 of file doctokenizer.l.

1957{
1958 yyscan_t yyscanner = p->yyscanner;
1959 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1960 yyextra->token.verb="";
1961 yyextra->token.name="";
1962 BEGIN(St_XmlCode);
1963}

References p, and yyguts_t.

Referenced by DocPara::handleHtmlStartTag().

◆ setStateXmlOnly()

void DocTokenizer::setStateXmlOnly ( )

Definition at line 1990 of file doctokenizer.l.

1991{
1992 yyscan_t yyscanner = p->yyscanner;
1993 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1994 yyextra->token.verb="";
1995 BEGIN(St_XmlOnly);
1996}

References p, and yyguts_t.

Referenced by DocParser::defaultHandleToken(), and DocPara::handleCommand().

◆ setStateXRefItem()

void DocTokenizer::setStateXRefItem ( )

Definition at line 2103 of file doctokenizer.l.

2104{
2105 yyscan_t yyscanner = p->yyscanner;
2106 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2107 BEGIN(St_XRefItem);
2108}

References p, and yyguts_t.

Referenced by DocPara::handleXRefItem().

◆ startAutoList()

void DocTokenizer::startAutoList ( )

Definition at line 2285 of file doctokenizer.l.

2286{
2287 yyscan_t yyscanner = p->yyscanner;
2288 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2289 yyextra->autoListLevel++;
2290}

References p, and yyguts_t.

Referenced by DocAutoList::parse().

◆ token()

TokenInfo * DocTokenizer::token ( )

Definition at line 1901 of file doctokenizer.l.

1902{
1903 yyscan_t yyscanner = p->yyscanner;
1904 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1905 return &yyextra->token;
1906}

References p, and yyguts_t.

Referenced by DocParser::popContext(), and DocParser::pushContext().

◆ unputString()

void DocTokenizer::unputString ( const DString & tag)

Definition at line 1862 of file doctokenizer.l.

1863{
1864 yyscan_t yyscanner = p->yyscanner;
1865 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1866 unput_string(tag.data(),tag.length());
1867}
#define unput_string(yytext, yyleng)

References DString::data(), DString::length(), p, unput_string, and yyguts_t.

Referenced by checkIfHtmlEndTagEndsAutoList(), and DocParser::defaultHandleTitleAndSize().

◆ AutoSaveState

friend class AutoSaveState
friend

Definition at line 262 of file doctokenizer.h.

◆ DocParser

friend class DocParser
friend

Definition at line 263 of file doctokenizer.h.

References DocParser.

Referenced by DocParser.

Member Data Documentation

◆ p


The documentation for this class was generated from the following files: