22%option never-interactive
23%option prefix="pyscannerYY"
25%option extra-type="struct pyscannerYY_state *"
29#define YY_TYPEDEF_YY_SCANNER_T
65#define DBG_CTX(x) do { } while(0)
68#define YY_NO_UNISTD_H 1
70#define unput_string(yytext,yyleng) do { for (int i=(int)yyleng-1;i>=0;i--) unput(yytext[i]); } while(0)
160#define YY_INPUT(buf,result,max_size) result=yyread(yyscanner,buf,max_size);
Abstract interface for outline parsers.
This is an alternative implementation of QCString.
Text streaming class that buffers data.
std::unordered_map< std::string, std::string > StringUnorderedMap
#define lineCount(s, len)
static void newEntry(yyscan_t yyscanner)
static void incLineNr(yyscan_t yyscanner)
static void docVariable(yyscan_t yyscanner, const char *s)
static void initSpecialBlock(yyscan_t yyscanner)
static void initTriSingleQuoteBlock(yyscan_t yyscanner)
static int computeIndent(const char *s)
static void addFrom(yyscan_t yyscanner, bool all)
static void setProtection(yyscan_t yyscanner)
static void initParser(yyscan_t yyscanner)
static void endOfDef(yyscan_t yyscanner, int correction=0)
static QCString findPackageScope(yyscan_t yyscanner, const QCString &fileName)
static int yyread(yyscan_t yyscanner, char *buf, int max_size)
static void searchFoundClass(yyscan_t yyscanner)
static const char * stateToString(int state)
static QCString findPackageScopeFromPath(yyscan_t yyscanner, const QCString &path)
static void newVariable(yyscan_t yyscanner)
static void initTriDoubleQuoteBlock(yyscan_t yyscanner)
static void handleCommentBlock(yyscan_t yyscanner, const QCString &doc, bool brief)
static void searchFoundDef(yyscan_t yyscanner)
static void addEntry(yyscan_t yyscanner)
static const char * getLexerFILE()
static void startCommentBlock(yyscan_t yyscanner, bool brief)
static void newFunction(yyscan_t yyscanner)
static void addVariable(yyscan_t yyscanner)
static void addToString(yyscan_t yyscanner, const char *s)
static void initEntry(yyscan_t yyscanner)
Some helper functions for std::string.
std::shared_ptr< Entry > previous
std::shared_ptr< Entry > current
StringUnorderedMap packageNameCache
std::shared_ptr< Entry > bodyEntry
TextStream decoratorCommentStr
std::shared_ptr< Entry > current_root
bool packageCommentAllowed
OutlineParserInterface * thisParser
std::vector< QCString > decorators
CommentScanner commentScanner
MethodTypes
Kind of method.
Protection
Protection level of members.
Specifier
Virtualness of a member.
A bunch of utility functions.
177HEXNUMBER "0"[xX][0-9a-fA-F]+[lL]?
178OCTNUMBER "0"[0-7]+[lL]?
179NUMBER {DIGIT}+[lLjJ]?
180INTNUMBER {HEXNUMBER}|{OCTNUMBER}|{NUMBER}
181FLOATNUMBER {DIGIT}+"."{DIGIT}+([eE][+\-]?{DIGIT}+)?[jJ]?
183LETTER [A-Za-z\x80-\xFF]
184NONEMPTY [A-Za-z0-9_\x80-\xFF]
185EXPCHAR [#(){}\[\],:.%/\\=`*~|&<>!;+-]
186PARAMNONEMPTY [^ \t\n():]
187IDENTIFIER ({LETTER}|"_")({LETTER}|{DIGIT}|"_")*
188SCOPE {IDENTIFIER}("."{IDENTIFIER})*
190TRISINGLEQUOTE {STRINGPREFIX}?"'''"(!)?
191TRIDOUBLEQUOTE {STRINGPREFIX}?"\"\"\""(!)?
192ENDTRISINGLEQUOTE "'''"
193ENDTRIDOUBLEQUOTE "\"\"\""
194LONGSTRINGCHAR [^\\"']
196LONGSTRINGITEM ({LONGSTRINGCHAR}|{ESCAPESEQ})
197SMALLQUOTE ("\"\""|"\""|"'"|"''")
198LONGSTRINGBLOCK ({LONGSTRINGITEM}|{SMALLQUOTE})
200STRINGPREFIX ("r"|"u"|"ur"|"R"|"U"|"UR"|"Ur"|"uR")
201POUNDCOMMENT "#"[^#\n][^\n]*
206LINENR {B}*[1-9][0-9]*
207FILEICHAR [a-z_A-Z0-9\x80-\xFF\\:\\\/\-\+=&#@~]
208FILEECHAR [a-z_A-Z0-9\x80-\xFF\-\+=&#@~]
209FILECHARS {FILEICHAR}*{FILEECHAR}+
210HFILEMASK {FILEICHAR}*("."{FILEICHAR}+)+{FILECHARS}*
211VFILEMASK {FILECHARS}("."{FILECHARS})*
212FILEMASK {VFILEMASK}|{HFILEMASK}
215ID [a-z_A-Z%]+{IDSYM}*
238%x FunctionTypeAnnotation
239%x FunctionParamDefVal
258%x SingleQuoteStringIgnore
259%x DoubleQuoteStringIgnore
279 DBG_CTX((stderr,
"Found def at %d\n",yyextra->yyLineNr));
282 BEGIN( FunctionDec );
284 ^{B}"async"{BB}"def"{BB} {
285 DBG_CTX((stderr,
"Found async def at %d\n",yyextra->yyLineNr));
288 BEGIN( FunctionDec );
292 BEGIN( FunctionDec );
294 "async"{BB}"def"{BB} {
296 BEGIN( FunctionDec );
300 DBG_CTX((stderr,
"Found class at %d\n",yyextra->yyLineNr));
311 yyextra->packageCommentAllowed =
FALSE;
317 yyextra->packageCommentAllowed =
FALSE;
320 ^{B}{IDENTIFIER}/{B}"="{B}"property" {
321 yyextra->current->section = EntryType::makeVariable();
324 yyextra->current->fileName = yyextra->fileName;
325 yyextra->current->startLine = yyextra->yyLineNr;
326 yyextra->current->bodyLine = yyextra->yyLineNr;
327 yyextra->packageCommentAllowed =
FALSE;
QCString stripWhiteSpace() const
returns a copy of this string with leading and trailing whitespace removed
330 ^{B}{IDENTIFIER}/{B}"="[^=] {
331 if (yyextra->searchCount>0) REJECT;
333 yyextra->current->section = EntryType::makeVariable();
335 yyextra->current->fileName = yyextra->fileName;
336 yyextra->current->startLine = yyextra->yyLineNr;
337 yyextra->current->bodyLine = yyextra->yyLineNr;
338 yyextra->packageCommentAllowed =
FALSE;
341 ^{B}{IDENTIFIER}/{B}":" {
342 if (yyextra->searchCount>0) REJECT;
344 if (
id ==
"try" ||
id ==
"else" ||
id ==
"except" ||
id ==
"finally") REJECT;
346 yyextra->current->section = EntryType::makeVariable();
347 yyextra->current->name = id;
348 yyextra->current->fileName = yyextra->fileName;
349 yyextra->current->startLine = yyextra->yyLineNr;
350 yyextra->current->bodyLine = yyextra->yyLineNr;
351 yyextra->packageCommentAllowed =
FALSE;
354 {B}{IDENTIFIER}/({B},{B}{IDENTIFIER})*{B}")"*{B}"="[^=] {
358 if (yyextra->searchCount>1) REJECT;
360 yyextra->current->section = EntryType::makeVariable();
362 yyextra->current->fileName = yyextra->fileName;
363 yyextra->current->startLine = yyextra->yyLineNr;
364 yyextra->current->bodyLine = yyextra->yyLineNr;
365 yyextra->packageCommentAllowed =
FALSE;
static void addVariable(yyscan_t yyscanner, QCString type, QCString name)
369 yyextra->stringContext=YY_START;
370 yyextra->copyString=
nullptr;
371 yyextra->packageCommentAllowed =
FALSE;
372 BEGIN( SingleQuoteString );
375 yyextra->stringContext=YY_START;
376 yyextra->copyString=
nullptr;
377 yyextra->packageCommentAllowed =
FALSE;
378 BEGIN( DoubleQuoteString );
381 yyextra->isStatic=
TRUE;
385 yyextra->decoratorRound = 1;
386 yyextra->copyString=
nullptr;
393 if (yyextra->yyLineNr != 1) REJECT;
400 yyextra->packageCommentAllowed =
FALSE;
412 BEGIN(TripleComment);
417 BEGIN(TripleComment);
420 {B}{STARTDOCSYMS}/[^#] {
422 yyextra->packageCommentAllowed =
FALSE;
424 BEGIN(SpecialComment);
427 yyextra->searchCount++;
430 if (yyextra->searchCount>0)
432 yyextra->searchCount--;
436 yyextra->current->doc.clear();
437 yyextra->current->brief.clear();
451 {IDENTIFIER}({B}"."{B}{IDENTIFIER})* {
452 yyextra->packageName=yytext;
474 {IDENTIFIER}/{B}","{B} {
477 {IDENTIFIER}/{B}")" {
482 if (!yyextra->importTuple)
489 if (!yyextra->importTuple)
497 yyextra->importTuple=
TRUE;
500 yyextra->importTuple=
FALSE;
515 {IDENTIFIER}({B}"."{B}{IDENTIFIER})* {
517 yyextra->current->fileName = yyextra->fileName;
519 yyextra->current->section=EntryType::makeUsingDecl();
520 yyextra->current_root->moveToSubEntryAndRefresh(yyextra->current);
static void initEntry(yyscan_t yyscanner)
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
QCString removeRedundantWhiteSpace(const QCString &s)
537 ("cls"|"self")"."{IDENTIFIER}/{B}[,)] {
538 const char *s = strchr(yytext,
'.'); s++;
539 DBG_CTX((stderr,
"Found instance method variable %s in %s at %d\n",s,
qPrint(yyextra->current_root->name.data(),yyextra->yyLineNr)));
const char * qPrint(const char *s)
543 ("cls"|"self")"."{IDENTIFIER}/{B}"=" {
544 const char *s = strchr(yytext,
'.'); s++;
545 DBG_CTX((stderr,
"Found instance method variable %s in %s at %d\n",s,
qPrint(yyextra->current_root->name.data(),yyextra->yyLineNr)));
547 BEGIN( SearchSkipValue );
549 ("cls"|"self")"."{IDENTIFIER}/{B}":" {
550 const char *s = strchr(yytext,
'.'); s++;
551 DBG_CTX((stderr,
"Found instance method variable %s in %s at %d\n",s,
qPrint(yyextra->current_root->name.data(),yyextra->yyLineNr)));
557 BEGIN(TripleComment);
562 BEGIN(TripleComment);
565 {STARTDOCSYMS}/[^#] {
567 BEGIN(SpecialComment);
572 yyextra->stringContext=YY_START;
573 yyextra->copyString=
nullptr;
574 BEGIN( SingleQuoteString );
577 yyextra->stringContext=YY_START;
578 yyextra->copyString=
nullptr;
579 BEGIN( DoubleQuoteString );
583 yyextra->current->doc.clear();
584 yyextra->current->brief.clear();
586 BEGIN( SearchSkipValue );
595 yyextra->braceCount=0;
598 yyextra->current->type+=*yytext;
599 yyextra->braceCount++;
602 yyextra->current->type+=*yytext;
603 yyextra->braceCount--;
606 yyextra->stringContext=YY_START;
607 yyextra->copyString=
nullptr;
608 BEGIN( SingleQuoteString );
611 yyextra->stringContext=YY_START;
612 yyextra->copyString=
nullptr;
613 BEGIN( DoubleQuoteString );
616 if (yyextra->braceCount==0)
618 yyextra->current->type = yyextra->current->type.stripWhiteSpace();
620 BEGIN(SearchSkipValue);
624 yyextra->current->type+=*yytext;
628 yyextra->current->type = yyextra->current->type.stripWhiteSpace();
631 BEGIN(SearchMemVars);
634 yyextra->current->type+=
' ';
638 yyextra->current->type+=*yytext;
642<SearchSkipValue,VariableDec>{
645 yyextra->startInit =
TRUE;
646 yyextra->current->initializer.str(yytext);
647 yyextra->current->initializer <<
" ";
650 yyextra->current->initializer << yytext;
654 if (yyextra->current->type.isEmpty()) yyextra->current->type =
"int";
655 yyextra->current->initializer << yytext;
658 if (yyextra->current->type.isEmpty()) yyextra->current->type =
"float";
659 yyextra->current->initializer << yytext;
662 if (yyextra->current->type.isEmpty()) yyextra->current->type =
"bool";
663 yyextra->current->initializer << yytext;
666 if (yyextra->current->type.isEmpty()) yyextra->current->type =
"str";
667 yyextra->current->initializer << yytext;
668 yyextra->copyString=&yyextra->current->initializer;
669 yyextra->stringContext=YY_START;
670 BEGIN( SingleQuoteString );
672 {STRINGPREFIX}?"\"" {
673 if (yyextra->current->type.isEmpty()) yyextra->current->type =
"str";
674 yyextra->current->initializer << yytext;
675 yyextra->copyString=&yyextra->current->initializer;
676 yyextra->stringContext=YY_START;
677 BEGIN( DoubleQuoteString );
680 if (yyextra->current->type.isEmpty()) yyextra->current->type =
"str";
681 yyextra->current->initializer << yytext;
682 yyextra->doubleQuote=
TRUE;
683 yyextra->copyString=&yyextra->current->initializer;
684 yyextra->stringContext=YY_START;
689 if (yyextra->current->type.isEmpty()) yyextra->current->type =
"str";
690 yyextra->current->initializer << yytext;
691 yyextra->doubleQuote=
FALSE;
692 yyextra->copyString=&yyextra->current->initializer;
693 yyextra->stringContext=YY_START;
699 yyextra->current->type =
"tuple";
701 yyextra->current->initializer << *yytext;
702 yyextra->atomStart=
'(';
703 yyextra->atomEnd=
')';
704 yyextra->atomCount=1;
705 yyextra->atomContext=YY_START;
706 BEGIN( VariableAtom );
709 if (yyextra->startInit) yyextra->current->type =
"list";
710 yyextra->current->initializer << *yytext;
711 yyextra->atomStart=
'[';
712 yyextra->atomEnd=
']';
713 yyextra->atomCount=1;
714 yyextra->atomContext=YY_START;
715 BEGIN( VariableAtom );
718 if (yyextra->startInit) yyextra->current->type =
"dict";
719 yyextra->current->initializer << *yytext;
720 yyextra->atomStart=
'{';
721 yyextra->atomEnd=
'}';
722 yyextra->atomCount=1;
723 yyextra->atomContext=YY_START;
724 BEGIN( VariableAtom );
727 yyextra->current->initializer << yytext;
732 if (yyextra->current->type.isEmpty())
734 for (
const auto &child : yyextra->current_root->children())
736 if (child->name ==
QCString(yytext))
738 yyextra->current->type = child->type;
743 yyextra->startInit =
FALSE;
744 yyextra->current->initializer << yytext;
747 yyextra->startInit =
FALSE;
748 yyextra->current->initializer << *yytext;
752 {STARTDOCSYMS}/[^#] {
754 BEGIN(SpecialComment);
760 BEGIN(SearchMemVars);
764 BEGIN(SearchMemVars);
769 \n{B}/{IDENTIFIER}[^{LETTER}{DIGIT}_] {
781 yyextra->current->program << yytext;
795 yyextra->current->program << yytext;
803 yyextra->current->program << yytext;
806 yyextra->current->program << yytext;
808 if (yyextra->curIndent<=yyextra->indent)
816 yyextra->current->program << yytext;
817 yyextra->stringContext=YY_START;
818 yyextra->specialBlock =
FALSE;
819 yyextra->copyString=&yyextra->current->program;
820 BEGIN( SingleQuoteString );
823 yyextra->current->program << yytext;
824 yyextra->stringContext=YY_START;
825 yyextra->specialBlock =
FALSE;
826 yyextra->copyString=&yyextra->current->program;
827 BEGIN( DoubleQuoteString );
830 yyextra->current->program << yytext;
831 yyextra->specialBlock =
FALSE;
834 yyextra->current->program << yytext;
837 yyextra->current->program << yytext;
841 yyextra->current->program << yytext;
844 yyextra->current->program << *yytext;
845 yyextra->specialBlock =
FALSE;
849 yyextra->current->program << yytext;
851 BEGIN(TripleComment);
855 yyextra->current->program << yytext;
857 BEGIN(TripleComment);
865 yyextra->current->name = yytext;
866 yyextra->current->name = yyextra->current->name.stripWhiteSpace();
870 yyextra->specialBlock =
TRUE;
871 yyextra->bodyEntry = yyextra->current;
872 yyextra->current->bodyLine = yyextra->yyLineNr;
877 yyextra->defVal.str(std::string());
878 yyextra->braceCount = 0;
879 BEGIN(FunctionTypeAnnotation);
882 yyextra->funcParamsEnd =
FALSE;
883 yyextra->current->bodyLine = yyextra->yyLineNr;
884 BEGIN(FunctionParams);
887 if (yyextra->current->argList.empty())
889 yyextra->current->argList.setNoParameters(
TRUE);
892 yyextra->funcParamsEnd =
TRUE;
QCString argListToString(const ArgumentList &al, bool useCanonicalType, bool showDefVals)
901 if (!yyextra->argType.isEmpty())
905 a.
type = yyextra->argType;
906 yyextra->current->argList.push_back(a);
907 yyextra->argType =
"";
This class contains the information about the argument of a function or template.
912 yyextra->argType = yytext;
918 a.
type = yyextra->argType;
919 yyextra->current->argList.push_back(a);
920 yyextra->argType =
"";
925 yyextra->defVal.str(std::string());
926 yyextra->braceCount = 0;
927 BEGIN(FunctionParamDefVal);
930 if (!yyextra->argType.isEmpty())
934 a.
type = yyextra->argType;
935 yyextra->current->argList.push_back(a);
936 yyextra->argType =
"";
942 yyextra->defVal.str(std::string());
943 yyextra->braceCount = 0;
944 BEGIN(FunctionAnnotation);
953<FunctionTypeAnnotation>{
957 ++yyextra->braceCount;
958 yyextra->defVal << *yytext;
963 --yyextra->braceCount;
964 yyextra->defVal << *yytext;
967 if (yyextra->braceCount == 0)
969 yyextra->current->type = yyextra->defVal.str();
974 yyextra->defVal << *yytext;
977 yyextra->defVal << *yytext;
978 yyextra->copyString=&yyextra->defVal;
979 yyextra->stringContext=FunctionTypeAnnotation;
980 BEGIN(SingleQuoteString);
983 yyextra->defVal << *yytext;
984 yyextra->copyString=&yyextra->defVal;
985 yyextra->stringContext=FunctionTypeAnnotation;
986 BEGIN(DoubleQuoteString);
989 yyextra->defVal << *yytext;
993 yyextra->defVal << *yytext;
1001 ++yyextra->braceCount;
1002 yyextra->defVal << *yytext;
1006 --yyextra->braceCount;
1007 yyextra->defVal << *yytext;
1012 if (yyextra->braceCount == 0)
1014 if (!yyextra->current->argList.empty())
1015 yyextra->current->argList.back().type += yyextra->defVal.str();
1018 BEGIN(FunctionParams);
1023 --yyextra->braceCount;
1024 yyextra->defVal << *yytext;
1028 yyextra->defVal << *yytext;
1029 yyextra->copyString=&yyextra->defVal;
1030 yyextra->stringContext=FunctionAnnotation;
1031 BEGIN(SingleQuoteString);
1034 yyextra->defVal << *yytext;
1035 yyextra->copyString=&yyextra->defVal;
1036 yyextra->stringContext=FunctionAnnotation;
1037 BEGIN(DoubleQuoteString);
1040 yyextra->defVal << *yytext;
1044 yyextra->defVal << *yytext;
1048<FunctionParamDefVal>{
1052 ++yyextra->braceCount;
1053 yyextra->defVal << *yytext;
1057 --yyextra->braceCount;
1058 yyextra->defVal << *yytext;
1062 if (yyextra->braceCount == 0)
1064 if (!yyextra->current->argList.empty())
1068 BEGIN(FunctionParams);
1073 --yyextra->braceCount;
1074 yyextra->defVal << *yytext;
1079 yyextra->defVal << *yytext;
1080 yyextra->copyString=&yyextra->defVal;
1081 yyextra->stringContext=FunctionParamDefVal;
1082 BEGIN( SingleQuoteString );
1085 yyextra->defVal << *yytext;
1086 yyextra->copyString=&yyextra->defVal;
1087 yyextra->stringContext=FunctionParamDefVal;
1088 BEGIN( DoubleQuoteString );
1091 yyextra->defVal << *yytext;
1095 yyextra->defVal << *yytext;
1101 \n/{IDENTIFIER}{BB} {
1105 for (i=(
int)yyleng-1;i>=0;i--)
1116 yyextra->current->program << yytext;
1123 for (i=(
int)yyleng-1;i>=0;i--)
1134 yyextra->current->program << yytext;
1138 yyextra->current->program << yytext;
1146 DBG_CTX((stderr,
"yyextra->curIndent=%d yyextra->indent=%d\n",yyextra->curIndent,yyextra->indent));
1147 if (yyextra->curIndent<=yyextra->indent)
1151 yyextra->indent=yyextra->curIndent;
1159 yyextra->current->program << yytext;
1163 yyextra->current->program << *yytext;
1164 yyextra->stringContext=YY_START;
1165 yyextra->specialBlock =
FALSE;
1166 yyextra->copyString=&yyextra->current->program;
1167 BEGIN( SingleQuoteString );
1170 yyextra->current->program << *yytext;
1171 yyextra->stringContext=YY_START;
1172 yyextra->specialBlock =
FALSE;
1173 yyextra->copyString=&yyextra->current->program;
1174 BEGIN( DoubleQuoteString );
1177 yyextra->current->program << yytext;
1178 yyextra->specialBlock =
FALSE;
1182 yyextra->current->program << *yytext;
1186 yyextra->current->program << yytext;
1189 yyextra->specialBlock =
FALSE;
1190 yyextra->current->program << *yytext;
1194 yyextra->current->program << yytext;
1196 BEGIN(TripleComment);
1201 yyextra->current->program << yytext;
1203 BEGIN(TripleComment);
1207<ClassDec>{IDENTIFIER} {
1208 if (yyextra->current->type.isEmpty())
1210 yyextra->current->type =
"class";
1213 yyextra->current->section = EntryType::makeClass();
1214 yyextra->current->name = yytext;
1219 if (yyextra->current_root->section.isScope())
1222 yyextra->current->name.prepend(yyextra->current_root->name+
"::");
1225 yyextra->current->name = yyextra->current->name.stripWhiteSpace();
1226 yyextra->current->fileName = yyextra->fileName;
1227 yyextra->docBlockContext = YY_START;
1228 yyextra->docBlockInBody =
FALSE;
1229 yyextra->docBlockJavaStyle =
FALSE;
1230 yyextra->docBlock.clear();
1232 BEGIN(ClassInheritance);
1240 yyextra->specialBlock =
TRUE;
1241 yyextra->current->bodyLine = yyextra->yyLineNr;
1242 yyextra->current->program.str(std::string());
1243 BEGIN(ClassCaptureIndent);
1247 yyextra->current->extends.emplace_back(
1253 yyextra->stringContext=YY_START;
1254 BEGIN( SingleQuoteStringIgnore );
1257 yyextra->stringContext=YY_START;
1258 BEGIN( DoubleQuoteStringIgnore );
1262<SingleQuoteStringIgnore>{
1264 BEGIN(yyextra->stringContext);
1268<DoubleQuoteStringIgnore>{
1270 BEGIN(yyextra->stringContext);
1275<ClassCaptureIndent>{
1279 yyextra->current->program << yytext;
1284 yyextra->current->program << yytext;
1285 BEGIN(TripleComment);
1289 yyextra->current->program << yytext;
1290 BEGIN(TripleComment);
1292 {STARTDOCSYMS}[#]* {
1294 BEGIN(SpecialComment);
1299 yyextra->current->program << yytext;
1302 yyextra->bodyEntry = yyextra->current;
1303 DBG_CTX((stderr,
"setting indent %d\n",yyextra->curIndent));
1309 ""/({NONEMPTY}|{EXPCHAR}) {
1313 yyextra->current->program << yytext;
1322 ":"{B}{IDENTIFIER} {
1323 yyextra->startInit =
FALSE;
1324 yyextra->current->type =
substitute(yytext,
":",
"");
1326 {STARTDOCSYMS}"<"/.* {
1328 yyextra->packageCommentAllowed =
FALSE;
1330 yyextra->docBlockContext = VariableEnd;
1331 BEGIN(SpecialComment);
1334 BEGIN( VariableEnd );
1338 BEGIN( VariableEnd );
1344 yyextra->current->initializer << *yytext;
1345 if (yyextra->atomStart==*yytext)
1347 yyextra->atomCount++;
1351 yyextra->current->initializer << *yytext;
1352 if (yyextra->atomEnd==*yytext)
1354 yyextra->atomCount--;
1356 if (yyextra->atomCount==0)
1358 yyextra->startInit =
FALSE;
1359 BEGIN(yyextra->atomContext);
1363 yyextra->specialBlock =
FALSE;
1364 yyextra->current->program << yytext;
1366 BEGIN(TripleComment);
1370 yyextra->specialBlock =
FALSE;
1371 yyextra->current->program << yytext;
1373 BEGIN(TripleComment);
1376 yyextra->stringContext=YY_START;
1377 yyextra->current->initializer <<
"'";
1378 yyextra->copyString=&yyextra->current->initializer;
1379 BEGIN( SingleQuoteString );
1382 yyextra->stringContext=YY_START;
1383 yyextra->current->initializer <<
"\"";
1384 yyextra->copyString=&yyextra->current->initializer;
1385 BEGIN( DoubleQuoteString );
1388 yyextra->current->initializer << yytext;
1391 yyextra->current->initializer << *yytext;
1394 yyextra->current->initializer << *yytext;
std::string_view stripWhiteSpace(std::string_view s)
Given a string view s, returns a new, narrower view on that string, skipping over any leading or trai...
1419 {ENDTRIDOUBLEQUOTE} |
1420 {ENDTRISINGLEQUOTE} {
1422 if (yyextra->doubleQuote==(yytext[0]==
'"'))
1424 if (yyextra->specialBlock)
1426 QCString actualDoc=yyextra->docBlock;
1427 if (!yyextra->docBlockSpecial)
1432 actualDoc.
prepend(
"@iverbatim\n");
1433 actualDoc.
append(
"@endiverbatim ");
1439 else if (yyextra->packageCommentAllowed)
1441 QCString actualDoc=yyextra->docBlock;
1442 if (!yyextra->docBlockSpecial)
1447 actualDoc.
prepend(
"@iverbatim\n");
1448 actualDoc.
append(
"@endiverbatim ");
1451 if (yyextra->moduleScope.startsWith(
"__") && yyextra->moduleScope.endsWith(
"__"))
1453 actualDoc.
prepend(
"\\namespace \\"+yyextra->moduleScope+
" ");
1457 actualDoc.
prepend(
"\\namespace "+yyextra->moduleScope+
" ");
1461 if ((yyextra->docBlockContext==ClassBody ) ||
1462 yyextra->docBlockContext==FunctionBody)
1464 yyextra->current->program << yyextra->docBlock;
1465 yyextra->current->program << yytext;
1472 BEGIN(yyextra->docBlockContext);
1476 yyextra->docBlock += yytext;
1478 yyextra->packageCommentAllowed =
FALSE;
QCString & prepend(const char *s)
bool isEmpty() const
Returns TRUE iff the string is empty.
QCString & append(char c)
static void handleCommentBlock(yyscan_t yyscanner, const QCString &doc, bool brief)
void stripIndentationVerbatim(QCString &doc, const int indentationLevel)
1483 if (yyextra->docBlockSpecial && yyleng >= yyextra->curIndent)
1484 yyextra->docBlock += yytext + yyextra->curIndent;
1486 yyextra->docBlock += yytext;
1489 yyextra->docBlock += yytext;
1493 yyextra->docBlock += yytext;
1495 {CMD}"ifile"{B}+"\""[^\n\"]+"\"" {
1496 yyextra->fileName = &yytext[6];
1497 yyextra->fileName = yyextra->fileName.stripWhiteSpace();
1498 yyextra->fileName = yyextra->fileName.mid(1,yyextra->fileName.length()-2);
1499 yyextra->docBlock+=yytext;
1501 {CMD}"ifile"{B}+{FILEMASK} {
1502 yyextra->fileName = &yytext[6];
1503 yyextra->fileName = yyextra->fileName.stripWhiteSpace();
1504 yyextra->docBlock+=yytext;
1506 {CMD}"iline"{LINENR}/[\n\.] |
1507 {CMD}"iline"{LINENR}{B} {
1512 warn(yyextra->fileName,yyextra->yyLineNr,
"Invalid line number '{}' for iline command",yytext);
1516 yyextra->yyLineNr = nr;
1518 yyextra->docBlock+=yytext;
int toInt(bool *ok=nullptr, int base=10) const
#define warn(file, line, fmt,...)
1520 ({CMD}{CMD}){ID}/[^a-z_A-Z0-9] {
1521 yyextra->docBlock+=yytext;
1524 yyextra->docBlock += yytext;
1527 yyextra->docBlock += yytext;
1535 yyextra->docBlock+=
'\n';
1536 yyextra->docBrief =
FALSE;
1539 {CMD}"ifile"{B}+"\""[^\n\"]+"\"" {
1540 yyextra->fileName = &yytext[6];
1541 yyextra->fileName = yyextra->fileName.stripWhiteSpace();
1542 yyextra->fileName = yyextra->fileName.mid(1,yyextra->fileName.length()-2);
1543 yyextra->docBlock+=yytext;
1545 {CMD}"ifile"{B}+{FILEMASK} {
1546 yyextra->fileName = &yytext[6];
1547 yyextra->fileName = yyextra->fileName.stripWhiteSpace();
1548 yyextra->docBlock+=yytext;
1550 {CMD}"iline"{LINENR}/[\n\.] |
1551 {CMD}"iline"{LINENR}{B} {
1556 warn(yyextra->fileName,yyextra->yyLineNr,
"Invalid line number '{}' for iline command",yytext);
1560 yyextra->yyLineNr = nr;
1562 yyextra->docBlock+=yytext;
1564 ({CMD}{CMD}){ID}/[^a-z_A-Z0-9] {
1565 yyextra->docBlock+=yytext;
1569 int extraSpaces = std::max(0,
static_cast<int>(yyleng-9-yyextra->curIndent-2));
1570 indent.
fill(
' ',extraSpaces);
1572 yyextra->docBlock +=
"\\ilinebr ";
1573 yyextra->docBlock += indent;
void fill(char c, int len=-1)
Fills a string with a predefined character.
1576 yyextra->docBlock+=yytext;
1580 if (yyextra->docBlockContext == VariableEnd)
1588 BEGIN(yyextra->docBlockContext);
1591 yyextra->docBlock+=*yytext;
1608 BEGIN(yyextra->stringContext);
1631 BEGIN(yyextra->stringContext);
1642 {ENDTRIDOUBLEQUOTE} |
1643 {ENDTRISINGLEQUOTE} {
1644 *yyextra->copyString << yytext;
1645 if (yyextra->doubleQuote==(yytext[0]==
'"'))
1647 BEGIN(yyextra->stringContext);
1652 ({LONGSTRINGBLOCK}) {
1654 *yyextra->copyString << yytext;
1658 *yyextra->copyString << yytext;
1661 *yyextra->copyString << *yytext;
1667 yyextra->doubleQuote=
TRUE;
1668 yyextra->decoratorCommentStr.str(std::string());
1669 yyextra->copyString=&yyextra->decoratorCommentStr;
1670 yyextra->stringContext=YY_START;
1671 BEGIN(TripleString);
1675 yyextra->doubleQuote=
FALSE;
1676 yyextra->decoratorCommentStr.str(std::string());
1677 yyextra->copyString=&yyextra->decoratorCommentStr;
1678 yyextra->stringContext=YY_START;
1679 BEGIN(TripleString);
1682 yyextra->stringContext=YY_START;
1683 yyextra->decoratorCommentStr.str(std::string());
1684 yyextra->copyString=&yyextra->decoratorCommentStr;
1685 BEGIN( SingleQuoteString );
1688 yyextra->stringContext=YY_START;
1689 yyextra->decoratorCommentStr.str(std::string());
1690 yyextra->copyString=&yyextra->decoratorCommentStr;
1691 BEGIN( DoubleQuoteString );
1694 yyextra->decoratorRound++;
1697 yyextra->decoratorRound--;
1698 if (!yyextra->decoratorRound) BEGIN(
Search );
1740 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1742 const char *p = yyextra->inputString + yyextra->inputPosition;
1743 while ( c < max_size && *p ) { *buf++ = *p++; c++; }
1744 yyextra->inputPosition+=c;
1750 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1753 yyextra->isStatic =
FALSE;
1755 yyextra->previous = 0;
1756 yyextra->packageCommentAllowed =
TRUE;
1761 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1763 yyextra->current->protection = yyextra->protection ;
1764 yyextra->current->mtype = yyextra->mtype;
1765 yyextra->current->virt = yyextra->virt;
1766 yyextra->current->isStatic = yyextra->isStatic;
1768 yyextra->current->type.clear();
1769 yyextra->current->name.clear();
1770 yyextra->commentScanner.initGroupInfo(yyextra->current.get());
1771 yyextra->isStatic =
FALSE;
1776 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1778 if (yyextra->checkDupEntry)
1780 for (
auto &v : yyextra->current_root->children())
1783 if (v->name==yyextra->current->name && v->section==yyextra->current->section)
1785 if (v->doc.isEmpty() && !yyextra->current->doc.isEmpty())
1787 v->doc = yyextra->current->doc;
1788 v->docLine = yyextra->current->docLine;
1789 v->docFile = yyextra->current->docFile;
1791 if (v->brief.isEmpty() && !yyextra->current->brief.isEmpty())
1793 v->brief = yyextra->current->brief;
1794 v->briefLine = yyextra->current->briefLine;
1795 v->briefFile = yyextra->current->briefFile;
1797 if (v->type.isEmpty() && !yyextra->current->type.isEmpty())
1800 v->type = yyextra->current->type;
1809 yyextra->previous = yyextra->current;
1810 yyextra->current_root->moveToSubEntryAndRefresh(yyextra->current);
1817 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1819 auto doc = yyextra->current->doc;
1820 auto docLine = yyextra->current->docLine;
1821 auto docFile = yyextra->current->docFile;
1822 auto brief = yyextra->current->brief;
1823 auto briefLine = yyextra->current->briefLine;
1824 auto briefFile = yyextra->current->briefFile;
1826 yyextra->previous = yyextra->current;
1827 yyextra->current_root->moveToSubEntryAndRefresh(yyextra->current);
1830 yyextra->current->doc = doc;
1831 yyextra->current->docLine = docLine;
1832 yyextra->current->docFile = docFile;
1833 yyextra->current->brief = brief;
1834 yyextra->current->briefLine = briefLine;
1835 yyextra->current->briefFile = briefFile;
1840 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1841 if (!yyextra->current->name.isEmpty() && yyextra->current->name.at(0)==
'_')
1843 if (yyextra->current->name.at(1)==
'_')
1856 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1857 yyextra->current->name = name;
1858 yyextra->current->section=EntryType::makeVariable();
1859 yyextra->current->fileName = yyextra->fileName;
1860 yyextra->current->startLine = yyextra->yyLineNr;
1861 yyextra->current->bodyLine = yyextra->yyLineNr;
1862 yyextra->current->type.clear();
1864 yyextra->checkDupEntry =
true;
1869 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1871 if (yyextra->current_root->section.isCompound())
1873 yyextra->current->isStatic =
TRUE;
1880 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1882 if (yyextra->current_root->section.isCompound())
1884 yyextra->current->isStatic =
TRUE;
1891 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1892 if (yyextra->current->name.startsWith(
"__") && yyextra->current->name.endsWith(
"__"))
1913 else if (c==
'\t') col+=tabSize-(col%tabSize);
1921 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1922 auto it = yyextra->packageNameCache.
find(path.
str());
1923 if (it!=yyextra->packageNameCache.end())
1938 scope+=path.
mid(i+1);
1939 yyextra->packageNameCache.emplace(path.
str(),scope.
str());
1948 if (fileName.
isEmpty())
return fileName;
1955 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1956 QCString item=all ? yyextra->packageName : yyextra->packageName+
"."+yytext;
1958 yyextra->current->fileName = yyextra->fileName;
1960 yyextra->current->section=all ? EntryType::makeUsingDir() : EntryType::makeUsingDecl();
1961 yyextra->current_root->moveToSubEntryAndRefresh(yyextra->current);
1968 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1969 DBG_CTX((stderr,
"yyextra->yyLineNr=%d\n",yyextra->yyLineNr));
1970 for (
const char *p = yytext; *p; ++p)
1972 yyextra->yyLineNr += (*p ==
'\n') ;
1978 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1979 DBG_CTX((stderr,
"yyextra->yyLineNr=%d\n",yyextra->yyLineNr));
1980 yyextra->yyLineNr++;
1986 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
1989 yyextra->current->briefFile = yyextra->fileName;
1990 yyextra->current->briefLine = yyextra->yyLineNr;
1994 yyextra->current->docFile = yyextra->fileName;
1995 yyextra->current->docLine = yyextra->yyLineNr;
2001 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2006 yyextra->docBlockInBody=
FALSE;
2008 if (!yyextra->current->doc.isEmpty())
2010 yyextra->current->doc=yyextra->current->doc.stripWhiteSpace()+
"\n\n";
2012 if (yyextra->docBlockInBody && yyextra->previous && !yyextra->previous->doc.isEmpty())
2014 yyextra->previous->doc=yyextra->previous->doc.stripWhiteSpace()+
"\n\n";
2018 bool needsEntry =
false;
2019 int lineNr = brief ? yyextra->current->briefLine : yyextra->current->docLine;
2020 Markdown markdown(yyextra->fileName,lineNr);
2024 while (yyextra->commentScanner.parseCommentBlock(
2025 yyextra->thisParser,
2026 (yyextra->docBlockInBody && yyextra->previous) ? yyextra->previous.get() : yyextra->current.get(),
2030 yyextra->docBlockInBody ?
FALSE : brief,
2031 yyextra->docBlockJavaStyle,
2032 yyextra->docBlockInBody,
2033 yyextra->protection,
2055 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2057 if (yyextra->bodyEntry)
2059 yyextra->bodyEntry->endBodyLine = yyextra->yyLineNr-correction;
2060 yyextra->bodyEntry = 0;
2068 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2069 if (yyextra->copyString) (*yyextra->copyString) << s;
2074 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2075 yyextra->docBlockContext = YY_START;
2076 yyextra->docBlockInBody =
FALSE;
2077 yyextra->docBlockJavaStyle =
TRUE;
2078 yyextra->docBlockSpecial = yytext[strlen(yytext) - 1]==
'!' || !
Config_getBool(PYTHON_DOCSTRING);
2079 yyextra->docBlock.clear();
2080 yyextra->commentIndent = yyextra->curIndent;
2081 yyextra->doubleQuote =
TRUE;
2082 if (yyextra->docBlockSpecial)
2084 yyextra->docBlock.fill(
' ',yyextra->indent);
2091 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2092 yyextra->docBlockContext = YY_START;
2093 yyextra->docBlockInBody =
FALSE;
2094 yyextra->docBlockJavaStyle =
TRUE;
2095 yyextra->docBlockSpecial = yytext[strlen(yytext) - 1]==
'!' || !
Config_getBool(PYTHON_DOCSTRING);
2096 yyextra->docBlock.clear();
2097 yyextra->commentIndent = yyextra->curIndent;
2098 yyextra->doubleQuote =
FALSE;
2099 if (yyextra->docBlockSpecial)
2101 yyextra->docBlock.fill(
' ',yyextra->indent);
2108 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2109 yyextra->docBlockContext = YY_START;
2110 yyextra->docBlockInBody =
FALSE;
2111 yyextra->docBlockJavaStyle =
TRUE;
2112 yyextra->docBrief =
TRUE;
2113 yyextra->docBlock.clear();
2114 yyextra->commentIndent = yyextra->curIndent;
2120 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2121 yyextra->current->fileName = yyextra->fileName;
2122 yyextra->current->startLine = yyextra->yyLineNr;
2123 yyextra->current->bodyLine = yyextra->yyLineNr;
2124 yyextra->current->section = EntryType::makeFunction();
2127 yyextra->current->isStatic = yyextra->isStatic;
2129 yyextra->current->type.clear();
2130 yyextra->current->name.clear();
2131 yyextra->current->args.clear();
2132 yyextra->current->argList.clear();
2133 yyextra->packageCommentAllowed =
FALSE;
2134 yyextra->isStatic=
FALSE;
2140 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2141 yyextra->current->section = EntryType::makeClass();
2142 yyextra->current->argList.clear();
2143 yyextra->current->type +=
"class" ;
2144 yyextra->current->fileName = yyextra->fileName;
2145 yyextra->current->startLine = yyextra->yyLineNr;
2146 yyextra->current->bodyLine = yyextra->yyLineNr;
2147 yyextra->packageCommentAllowed =
FALSE;
2154 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2156 for (
size_t i=0; i<rt->children().size(); ++i)
2158 std::shared_ptr<Entry> ce = rt->children()[i];
2159 if (!ce->program.empty())
2164 yyextra->programStr = ce->program.str();
2165 yyextra->inputString = yyextra->programStr.data();
2166 yyextra->inputPosition = 0;
2167 pyscannerYYrestart(
nullptr, yyscanner );
2168 if (ce->section.isCompound())
2170 yyextra->specialBlock =
false;
2171 yyextra->current_root = ce;
2174 else if (ce->parent())
2176 yyextra->current_root = rt;
2179 BEGIN( SearchMemVars );
2181 yyextra->fileName = ce->fileName;
2182 yyextra->yyLineNr = ce->bodyLine ;
2183 yyextra->current = std::make_shared<Entry>();
2186 yyextra->checkDupEntry =
false;
2189 yyextra->commentScanner.enterCompound(yyextra->fileName,yyextra->yyLineNr,name);
2191 pyscannerYYlex(yyscanner) ;
2192 yyextra->lexInit=
TRUE;
2194 yyextra->programStr.clear();
2195 ce->program.str(std::string());
2197 yyextra->commentScanner.leaveCompound(yyextra->fileName,yyextra->yyLineNr,name);
2209 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2212 if (fileBuf==
nullptr || fileBuf[0]==
'\0')
return;
2214 yyextra->inputString = fileBuf;
2215 yyextra->inputPosition = 0;
2219 yyextra->isStatic =
false;
2221 yyextra->current_root = rt;
2222 yyextra->specialBlock =
false;
2224 yyextra->yyLineNr= 1 ;
2225 yyextra->fileName = fileName;
2226 yyextra->checkDupEntry =
false;
2228 msg(
"Parsing file {}...\n",yyextra->fileName);
2233 if (baseName!=
"__init__")
2235 if (!yyextra->moduleScope.isEmpty())
2237 yyextra->moduleScope+=
"::";
2239 yyextra->moduleScope+=baseName;
2243 QCString scope = yyextra->moduleScope;
2248 pos = scope.
find(
"::",startPos);
2250 if (pos==-1) pos=(int)scope.
length();
2251 yyextra->current = std::make_shared<Entry>();
2253 yyextra->current->name = scope.
left(pos);
2254 yyextra->current->section = EntryType::makeNamespace();
2255 yyextra->current->type =
"namespace";
2256 yyextra->current->fileName = yyextra->fileName;
2257 yyextra->current->startLine = yyextra->yyLineNr;
2258 yyextra->current->bodyLine = yyextra->yyLineNr;
2259 yyextra->current_root = yyextra->current;
2260 rt->moveToSubEntryAndRefresh(yyextra->current);
2261 }
while (pos<(
int)scope.
length());
2265 yyextra->commentScanner.enterFile(yyextra->fileName,yyextra->yyLineNr);
2267 yyextra->current->reset();
2269 pyscannerYYrestart(
nullptr,yyscanner);
2271 pyscannerYYlex(yyscanner);
2272 yyextra->lexInit=
TRUE;
2274 yyextra->commentScanner.leaveFile(yyextra->fileName,yyextra->yyLineNr);
2276 yyextra->programStr.clear();
2277 yyextra->current_root->program.str(std::string());
2286 struct yyguts_t *yyg = (
struct yyguts_t*)yyscanner;
2290 warn(yyextra->fileName,yyextra->yyLineNr,
"Empty prototype found!");
2294 yyextra->specialBlock =
FALSE;
2295 yyextra->packageCommentAllowed =
FALSE;
2298 YY_BUFFER_STATE orgState = YY_CURRENT_BUFFER;
2299 yy_switch_to_buffer(yy_create_buffer(
nullptr,
YY_BUF_SIZE, yyscanner), yyscanner);
2300 const char *orgInputString = yyextra->inputString;
2301 int orgInputPosition = yyextra->inputPosition;
2304 yyextra->inputString = text.
data();
2305 yyextra->inputPosition = 0;
2306 pyscannerYYrestart(
nullptr, yyscanner );
2308 BEGIN( FunctionDec );
2310 pyscannerYYlex(yyscanner);
2311 yyextra->lexInit=
TRUE;
2313 yyextra->current->name = yyextra->current->name.stripWhiteSpace();
2314 if (yyextra->current->section.isMemberDoc() && yyextra->current->args.isEmpty())
2316 yyextra->current->section = EntryType::makeVariableDoc();
2321 yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner);
2322 yy_switch_to_buffer(orgState, yyscanner);
2324 yyextra->inputString = orgInputString;
2325 yyextra->inputPosition = orgInputPosition;
2340 pyscannerYYlex_init_extra(&
p->state,&
p->yyscanner);
2348 pyscannerYYlex_destroy(
p->yyscanner);
2353 const char *fileBuf,
2354 const std::shared_ptr<Entry> &root,
2357 struct yyguts_t *yyg = (
struct yyguts_t*)
p->yyscanner;
2358 yyextra->thisParser =
this;
2378#include "pyscanner.l.h"
Clang parser object for a single translation unit, which consists of a source file and the directly o...
static bool isFlagSet(const DebugMask mask)
Minimal replacement for QFileInfo.
std::string dirPath(bool absPath=true) const
std::string baseName() const
Helper class to process markdown formatted text.
QCString process(const QCString &input, int &startNewlines, bool fromParseInput=false)
bool needsPreprocessing(const QCString &extension) const override
Returns TRUE if the language identified by extension needs the C preprocessor to be run before feed t...
void parseInput(const QCString &fileName, const char *fileBuf, const std::shared_ptr< Entry > &root, ClangTUParser *clangParser) override
Parses a single input file with the goal to build an Entry tree.
std::unique_ptr< Private > p
~PythonOutlineParser() override
void parsePrototype(const QCString &text) override
Callback function called by the comment block scanner.
int find(char c, int index=0, bool cs=TRUE) const
size_t length() const
Returns the length of the string, not counting the 0-terminator.
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
const std::string & str() const
int findRev(char c, int index=-1, bool cs=TRUE) const
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
QCString left(size_t len) const
static int yyread(yyscan_t yyscanner, char *buf, int max_size)
#define Config_getInt(name)
#define Config_getBool(name)
static void startCommentBlock(yyscan_t yyscanner, bool)
static void parseMain(yyscan_t yyscanner, const QCString &fileName, const char *fileBuf, const std::shared_ptr< Entry > &rt, FortranFormat format)
static void parsePrototype(yyscan_t yyscanner, const QCString &text)
static void parseCompounds(yyscan_t yyscanner, std::shared_ptr< Entry > rt)
QCString stripIndentation(const QCString &s)