geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
#include "general.h"
#include "kind.h"
#include "lregex_p.h"
#include "parse.h"
#include "parsers_p.h"
#include "strlist.h"
Go to the source code of this file.
Macros | |
#define | LANG_FALLBACK (1) |
Enumerations | |
enum | langmapType { LMAP_PATTERN = 1 << 0 , LMAP_EXTENSION = 1 << 1 , LMAP_ALL = LMAP_PATTERN | LMAP_EXTENSION , LMAP_TABLE_OUTPUT = 1 << 2 } |
Functions | |
bool | doesLanguageAllowNullTag (const langType language) |
bool | doesLanguageRequestAutomaticFQTag (const langType language) |
langType | getNamedLanguageFull (const char *const name, size_t len, bool noPretending) |
kindDefinition * | getLanguageKind (const langType language, int kindIndex) |
kindDefinition * | getLanguageKindForName (const langType language, const char *kindName) |
roleDefinition * | getLanguageRole (const langType language, int kindIndex, int roleIndex) |
roleDefinition * | getLanguageRoleForName (const langType language, int kindIndex, const char *roleName) |
int | defineLanguageKind (const langType language, kindDefinition *def, freeKindDefFunc freeKindDef) |
unsigned int | countLanguageKinds (const langType language) |
unsigned int | countLanguageRoles (const langType language, int kindIndex) |
bool | isLanguageKindRefOnly (const langType language, int kindIndex) |
bool | isLanguageVisible (const langType language) |
void | installLanguageMapDefault (const langType language) |
void | installLanguageMapDefaults (void) |
void | clearLanguageMap (const langType language) |
bool | removeLanguageExtensionMap (const langType language, const char *const extension) |
void | addLanguageExtensionMap (const langType language, const char *extension, bool exclusiveInAllLanguages) |
bool | removeLanguagePatternMap (const langType language, const char *const pattern) |
void | addLanguagePatternMap (const langType language, const char *ptrn, bool exclusiveInAllLanguages) |
void | installLanguageAliasesDefault (const langType language) |
void | installLanguageAliasesDefaults (void) |
void | clearLanguageAliases (const langType language) |
void | addLanguageAlias (const langType language, const char *alias) |
void | printLanguageMaps (const langType language, langmapType type, bool withListHeader, bool machinable, FILE *fp) |
void | enableLanguages (const bool state) |
void | enableLanguage (const langType language, const bool state) |
void | initializeParsing (void) |
unsigned int | countParsers (void) |
void | freeParserResources (void) |
void | enableDefaultFileKind (bool state) |
void | printLanguageKinds (const langType language, bool allKindFields, bool withListHeader, bool machinable, FILE *fp) |
void | printLanguageRoles (const langType language, const char *letters, bool withListHeader, bool machinable, FILE *fp) |
void | printLanguageAliases (const langType language, bool withListHeader, bool machinable, FILE *fp) |
void | printLanguageList (void) |
void | printLanguageParameters (const langType language, bool withListHeader, bool machinable, FILE *fp) |
void | printLanguageSubparsers (const langType language, bool withListHeader, bool machinable, FILE *fp) |
void | printLangdefFlags (bool withListHeader, bool machinable, FILE *fp) |
void | printKinddefFlags (bool withListHeader, bool machinable, FILE *fp) |
bool | doesParserRequireMemoryStream (const langType language) |
bool | parseFile (const char *const fileName) |
bool | parseFileWithMio (const char *const fileName, MIO *mio, void *clientData) |
bool | parseRawBuffer (const char *fileName, unsigned char *buffer, size_t bufferSize, const langType language, void *clientData) |
bool | runParserInNarrowedInputStream (const langType language, unsigned long startLine, long startCharOffset, unsigned long endLine, long endCharOffset, unsigned long sourceLineOffset, int promise) |
bool | processLanguageRegexOption (langType language, enum regexParserType regptype, const char *const parameter) |
void | notifyLanguageRegexInputStart (langType language) |
void | notifyLanguageRegexInputEnd (langType language) |
void | matchLanguageRegex (const langType language, const vString *const line) |
void | freeRegexResources (void) |
bool | checkRegex (void) |
void | useRegexMethod (const langType language) |
void | printRegexFlags (bool withListHeader, bool machinable, FILE *fp) |
void | printMultilineRegexFlags (bool withListHeader, bool machinable, FILE *fp) |
void | printMultitableRegexFlags (bool withListHeader, bool machinable, FILE *fp) |
bool | hasLanguageScopeActionInRegex (const langType language) |
bool | hasLanguageMultilineRegexPatterns (const langType language) |
void | matchLanguageMultilineRegex (const langType language, const vString *const allLines) |
void | matchLanguageMultitableRegex (const langType language, const vString *const allLines) |
void | processLanguageMultitableExtendingOption (langType language, const char *const parameter) |
unsigned int | getXpathFileSpecCount (const langType language) |
xpathFileSpec * | getXpathFileSpec (const langType language, unsigned int nth) |
const tagXpathTableTable * | getXpathTableTable (const langType language, unsigned int nth) |
bool | makeKindSeparatorsPseudoTags (const langType language, const ptagDesc *pdesc) |
bool | makeKindDescriptionsPseudoTags (const langType language, const ptagDesc *pdesc) |
bool | makeFieldDescriptionsPseudoTags (const langType language, const ptagDesc *pdesc) |
bool | makeExtraDescriptionsPseudoTags (const langType language, const ptagDesc *pdesc) |
void | printLanguageMultitableStatistics (langType language) |
void | printParserStatisticsIfUsed (langType lang) |
enum langmapType |
void addLanguageAlias | ( | const langType | language, |
const char * | alias | ||
) |
Definition at line 1731 of file parse.c.
References Assert, sParserObject::currentAliases, LanguageCount, LanguageTable, NULL, stringListAdd(), stringListNew(), and vStringNewInit().
Referenced by processLangAliasOption().
void addLanguageExtensionMap | ( | const langType | language, |
const char * | extension, | ||
bool | exclusiveInAllLanguages | ||
) |
Definition at line 1720 of file parse.c.
References Assert, LANG_AUTO, LanguageCount, LanguageTable, removeLanguageExtensionMap(), stringListAdd(), and vStringNewInit().
Referenced by addLanguageMap().
void addLanguagePatternMap | ( | const langType | language, |
const char * | ptrn, | ||
bool | exclusiveInAllLanguages | ||
) |
Definition at line 1680 of file parse.c.
References Assert, sParserObject::currentPatterns, LANG_AUTO, LanguageCount, LanguageTable, removeLanguagePatternMap(), stringListAdd(), and vStringNewInit().
Referenced by addLanguageMap().
bool checkRegex | ( | void | ) |
Definition at line 2768 of file lregex.c.
References error(), regcomp(), regexAvailable, and WARNING.
Referenced by ctags_cli_main(), printFeatureList(), processListFeaturesOption(), and tm_ctags_init().
void clearLanguageAliases | ( | const langType | language | ) |
Definition at line 1643 of file parse.c.
References Assert, sParserObject::currentAliases, LanguageCount, LanguageTable, and stringListClear().
Referenced by processAliasOption(), and processLangAliasOption().
void clearLanguageMap | ( | const langType | language | ) |
Definition at line 1636 of file parse.c.
References Assert, LanguageCount, LanguageTable, and stringListClear().
Referenced by processLanguageMap(), and processMapOption().
unsigned int countLanguageKinds | ( | const langType | language | ) |
Definition at line 307 of file parse.c.
References countKinds(), and LanguageTable.
Referenced by countInputLanguageKinds(), enable_all_lang_kinds(), foreachKind(), initTagEntryFull(), and tm_ctags_get_lang_kinds().
unsigned int countLanguageRoles | ( | const langType | language, |
int | kindIndex | ||
) |
Definition at line 312 of file parse.c.
References countRoles(), and LanguageTable.
Referenced by assignRoleFull(), countInputLanguageRoles(), initTagEntryFull(), isTagWritable(), kindColprintFillLine(), matchTagPattern(), renderFieldRoles(), and resetKindRoles().
unsigned int countParsers | ( | void | ) |
Definition at line 177 of file parse.c.
References LanguageCount.
Referenced by batchMakeTags(), enable_all_lang_kinds(), initializeParser(), processListExtrasOption(), processListFieldsOption(), and tm_ctags_get_lang_count().
int defineLanguageKind | ( | const langType | language, |
kindDefinition * | def, | ||
freeKindDefFunc | freeKindDef | ||
) |
Definition at line 301 of file parse.c.
References defineKind(), and LanguageTable.
Referenced by setKind().
bool doesLanguageAllowNullTag | ( | const langType | language | ) |
Definition at line 246 of file parse.c.
References sParserDefinition::allowNullTag, Assert, sParserObject::def, LanguageCount, and LanguageTable.
Referenced by doesInputLanguageAllowNullTag().
bool doesLanguageRequestAutomaticFQTag | ( | const langType | language | ) |
Definition at line 252 of file parse.c.
References Assert, sParserObject::def, LanguageCount, LanguageTable, and sParserDefinition::requestAutomaticFQTag.
Referenced by doesInputLanguageRequestAutomaticFQTag().
bool doesParserRequireMemoryStream | ( | const langType | language | ) |
Definition at line 4043 of file parse.c.
References Assert, sParserDependency::data, sParserObject::def, sParserDefinition::dependencies, sParserDefinition::dependencyCount, DEPTYPE_SUBPARSER, doesParserRequireMemoryStream(), getNamedLanguage(), LanguageCount, LanguageTable, sParserDefinition::name, SUBPARSER_SUB_RUNS_BASE, sParserDefinition::tagXpathTableCount, sParserDependency::type, sParserDependency::upperParser, sParserDefinition::useMemoryStreamInput, and verbose().
Referenced by doesCandidatesRequireMemoryStream(), doesParserRequireMemoryStream(), and openInputFile().
void enableDefaultFileKind | ( | bool | state | ) |
Definition at line 2023 of file parse.c.
References defaultFileKind, and sKindDefinition::enabled.
Referenced by enableFileKind().
void enableLanguage | ( | const langType | language, |
const bool | state | ||
) |
Definition at line 1742 of file parse.c.
References Assert, sParserObject::def, sParserDefinition::enabled, LanguageCount, and LanguageTable.
Referenced by enableLanguages(), processLanguagesOption(), processPretendOption(), scheduleRunningBaseparser(), and setEtagsMode().
void enableLanguages | ( | const bool | state | ) |
Definition at line 1761 of file parse.c.
References enableLanguage(), and LanguageCount.
Referenced by processLanguagesOption().
void freeParserResources | ( | void | ) |
Definition at line 1954 of file parse.c.
References sParserObject::currentAliases, sParserObject::currentExtensions, sParserObject::currentPatterns, sParserObject::def, eFree(), sParserDefinition::finalize, finalizeDependencies(), freeKindControlBlock(), freeList(), freeLregexControlBlock(), freeSlaveControlBlock(), sParserObject::initialized, sParserObject::kindControlBlock, LanguageCount, LanguageTable, sParserObject::lregexControlBlock, sParserDefinition::name, NULL, sParserObject::slaveControlBlock, and uninstallTagXpathTable().
Referenced by ctags_cli_main().
void freeRegexResources | ( | void | ) |
Definition at line 2233 of file lregex.c.
Referenced by ctags_cli_main().
kindDefinition * getLanguageKind | ( | const langType | language, |
int | kindIndex | ||
) |
Definition at line 317 of file parse.c.
References Assert, sParserObject::fileKind, getKind(), KIND_FILE_INDEX, KIND_GHOST_INDEX, kindGhost, LanguageCount, and LanguageTable.
Referenced by ada_suffix(), addExtensionFields(), addTagRegexInternal(), enable_all_lang_kinds(), getLanguageKindName(), getTagKind(), getTagKindLetter(), getTagKindName(), getTagScopeInformation(), init_tag(), isLanguageKindEnabled(), isLanguageKindRefOnly(), isTagWritable(), makeKindSeparatorsPseudoTags(), processLangKindRoleDefinition(), and tm_ctags_get_lang_kinds().
kindDefinition * getLanguageKindForName | ( | const langType | language, |
const char * | kindName | ||
) |
Definition at line 349 of file parse.c.
References Assert, sParserObject::fileKind, getKindForName(), KIND_GHOST_NAME, kindGhost, LanguageCount, and LanguageTable.
Referenced by enableLanguageKindForName(), and tm_ctags_get_kind_from_name().
roleDefinition * getLanguageRole | ( | const langType | language, |
int | kindIndex, | ||
int | roleIndex | ||
) |
Definition at line 362 of file parse.c.
References getRole(), and LanguageTable.
Referenced by getTagRole(), and resetKindRoles().
roleDefinition * getLanguageRoleForName | ( | const langType | language, |
int | kindIndex, | ||
const char * | roleName | ||
) |
Definition at line 367 of file parse.c.
References getRoleForName(), and LanguageTable.
Referenced by common_flag_role_long(), and processLangKindRoleDefinition().
langType getNamedLanguageFull | ( | const char *const | name, |
size_t | len, | ||
bool | noPretending | ||
) |
Definition at line 373 of file parse.c.
References Assert, sParserObject::def, hashTableGetItem(), sParserDefinition::id, LANG_IGNORE, LanguageCount, LanguageHTable, LanguageTable, sParserDefinition::name, name, NULL, sParserObject::pretendedAsLanguage, strcasecmp, vStringDelete(), vStringNewInit(), vStringTruncate(), and vStringValue.
Referenced by getLanguageComponentInOptionFull(), getNamedLanguage(), and processPretendOption().
xpathFileSpec * getXpathFileSpec | ( | const langType | language, |
unsigned int | nth | ||
) |
Definition at line 4433 of file parse.c.
References Assert, sParserObject::def, LanguageCount, LanguageTable, and sParserDefinition::xpathFileSpecs.
unsigned int getXpathFileSpecCount | ( | const langType | language | ) |
Definition at line 4423 of file parse.c.
References Assert, sParserObject::def, LanguageCount, LanguageTable, and sParserDefinition::xpathFileSpecCount.
const tagXpathTableTable * getXpathTableTable | ( | const langType | language, |
unsigned int | nth | ||
) |
Definition at line 4412 of file parse.c.
References Assert, sParserObject::def, LanguageCount, LanguageTable, and sParserDefinition::tagXpathTableTable.
bool hasLanguageMultilineRegexPatterns | ( | const langType | language | ) |
Definition at line 4249 of file parse.c.
References lregexQueryParserAndSubparsers(), and regexNeedsMultilineBuffer().
Referenced by createTagsWithFallback1(), and resetInputFile().
bool hasLanguageScopeActionInRegex | ( | const langType | language | ) |
Definition at line 4261 of file parse.c.
References hasScopeActionInRegex(), lregexQueryParserAndSubparsers(), popLanguage(), and pushLanguage().
Referenced by parserCorkFlags().
void initializeParsing | ( | void | ) |
Definition at line 1907 of file parse.c.
References ARRAY_SIZE, Assert, BuiltInParsers, DEFAULT_TRASH_BOX, findRegexTags(), hashCstrcaseeq(), hashCstrcasehash(), hashTableDelete(), hashTableNew(), initializeParsingCommon(), LANG_IGNORE, LanguageHTable, LanguageTable, linkDependenciesAtInitializeParsing(), sParserDefinition::method, METHOD_NOT_CRAFTED, sParserDefinition::name, NULL, sParserDefinition::parser, sParserDefinition::parser2, sParserObject::pretendedAsLanguage, sParserObject::pretendingAsLanguage, RSV_LANG_ALL, verbose(), and xMalloc.
Referenced by ctags_cli_main(), and tm_ctags_init().
void installLanguageAliasesDefault | ( | const langType | language | ) |
Definition at line 1602 of file parse.c.
References sParserDefinition::aliases, Assert, BEGIN_VERBOSE, sParserObject::currentAliases, sParserObject::def, END_VERBOSE, LanguageCount, LanguageTable, NULL, stringListCount(), stringListDelete(), stringListItem(), stringListNew(), stringListNewFromArgv(), and vStringValue.
Referenced by installLanguageAliasesDefaults(), and processLangAliasOption().
void installLanguageAliasesDefaults | ( | void | ) |
Definition at line 1626 of file parse.c.
References getLanguageName(), installLanguageAliasesDefault(), LanguageCount, and verbose().
Referenced by initOptions(), and processAliasOption().
void installLanguageMapDefault | ( | const langType | language | ) |
Definition at line 1560 of file parse.c.
References Assert, BEGIN_VERBOSE, sParserObject::currentExtensions, sParserObject::currentPatterns, sParserObject::def, END_VERBOSE, sParserDefinition::extensions, LanguageCount, LanguageTable, NULL, sParserDefinition::patterns, printLanguageMap(), stringListDelete(), stringListNew(), and stringListNewFromArgv().
Referenced by installLanguageMapDefaults(), and processLanguageMap().
void installLanguageMapDefaults | ( | void | ) |
Definition at line 1592 of file parse.c.
References getLanguageName(), installLanguageMapDefault(), LanguageCount, and verbose().
Referenced by initOptions(), and processLanguageMapOption().
bool isLanguageKindRefOnly | ( | const langType | language, |
int | kindIndex | ||
) |
Definition at line 2235 of file parse.c.
References getLanguageKind(), and sKindDefinition::referenceOnly.
Referenced by isTagWritable().
bool isLanguageVisible | ( | const langType | language | ) |
Definition at line 226 of file parse.c.
References sParserObject::def, sParserDefinition::invisible, and LanguageTable.
Referenced by printLanguageMaps(), printLanguageRoles(), processListExtrasOption(), and processListFieldsOption().
Definition at line 4637 of file parse.c.
References countXtags(), getXtagOwner(), isXtagEnabled(), makeExtraDescriptionPseudoTag(), makeKindDescriptionPseudoTagData::pdesc, and makeKindDescriptionPseudoTagData::written.
Referenced by ptagMakeExtraDescriptions().
Definition at line 4599 of file parse.c.
References countFields(), getFieldOwner(), isFieldEnabled(), makeFieldDescriptionPseudoTag(), makeKindDescriptionPseudoTagData::pdesc, and makeKindDescriptionPseudoTagData::written.
Referenced by ptagMakeFieldDescriptions().
Definition at line 4544 of file parse.c.
References Assert, countKinds(), sParserObject::def, getKind(), isLanguageKindEnabled(), kindControlBlock::kind, sParserObject::kindControlBlock, makeKindDescriptionPseudoTagData::langName, LanguageCount, LanguageTable, makeKindDescriptionPseudoTag(), sParserDefinition::name, makeKindDescriptionPseudoTagData::pdesc, and makeKindDescriptionPseudoTagData::written.
Referenced by ptagMakeKindDescriptions().
Definition at line 4444 of file parse.c.
References Assert, countKinds(), sParserObject::def, getKind(), getLanguageKind(), kindControlBlock::kind, KIND_GHOST_INDEX, KIND_WILDCARD_INDEX, KIND_WILDCARD_LETTER, sParserObject::kindControlBlock, LanguageCount, LanguageTable, sKindDefinition::letter, sParserDefinition::name, name, sScopeSeparator::parentKindIndex, sScopeSeparator::separator, vStringCatSWithEscaping(), vStringClear, vStringDelete(), vStringNew(), vStringValue, and writePseudoTag().
Referenced by ptagMakeKindSeparators().
Definition at line 4191 of file parse.c.
References matchLanguageMultilineRegexCommon(), and matchMultilineRegex().
Referenced by iFileGetLine().
Definition at line 4197 of file parse.c.
References matchLanguageMultilineRegexCommon(), and matchMultitableRegex().
Referenced by iFileGetLine().
Definition at line 4272 of file parse.c.
References enterSubparser(), foreachSubparser, getSubparserLanguage(), LanguageTable, leaveSubparser(), line, matchLanguageRegex(), and matchRegex().
Referenced by iFileGetLine(), and matchLanguageRegex().
void notifyLanguageRegexInputEnd | ( | langType | language | ) |
Definition at line 3737 of file parse.c.
References LanguageTable, and notifyRegexInputEnd().
Referenced by createTagsForFile(), and notifyInputEnd().
void notifyLanguageRegexInputStart | ( | langType | language | ) |
Definition at line 3732 of file parse.c.
References LanguageTable, and notifyRegexInputStart().
Referenced by createTagsForFile(), and notifyInputStart().
bool parseFile | ( | const char *const | fileName | ) |
Definition at line 4076 of file parse.c.
References NULL, parseFileWithMio(), TRACE_ENTER_TEXT, and TRACE_LEAVE.
Referenced by createTagsForEntry().
bool parseFileWithMio | ( | const char *const | fileName, |
MIO * | mio, | ||
void * | clientData | ||
) |
Definition at line 4108 of file parse.c.
References addTotals(), Assert, closeTagFile(), GetLanguageRequest::fileName, sOptionValues::filter, getFileLanguageForRequest(), GetLanguageRequest::GLR_OPEN, GetLanguageRequest::GLR_REUSE, sOptionValues::interactive, isLanguageEnabled(), LANG_AUTO, LANG_IGNORE, GetLanguageRequest::mio, mio_unref(), openTagFile(), Option, parseMio(), printGuessedParser(), sOptionValues::printLanguage, GetLanguageRequest::type, and verbose().
Referenced by parseFile().
bool parseRawBuffer | ( | const char * | fileName, |
unsigned char * | buffer, | ||
size_t | bufferSize, | ||
const langType | language, | ||
void * | clientData | ||
) |
Definition at line 4158 of file parse.c.
References GetLanguageRequest::fileName, GetLanguageRequest::mio, mio_new_memory(), mio_unref(), NULL, and parseMio().
Referenced by tm_ctags_parse().
void printKinddefFlags | ( | bool | withListHeader, |
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 4918 of file parse.c.
References ARRAY_SIZE, colprintTableDelete(), flagsColprintAddDefinitions(), flagsColprintTableNew(), flagsColprintTablePrint(), and PreKindDefFlagDef.
Referenced by processListKinddefFlagsOptions().
void printLangdefFlags | ( | bool | withListHeader, |
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 4906 of file parse.c.
References ARRAY_SIZE, colprintTableDelete(), flagsColprintAddDefinitions(), flagsColprintTableNew(), flagsColprintTablePrint(), and PreLangDefFlagDef.
Referenced by processListLangdefFlagsOptions().
void printLanguageAliases | ( | const langType | language, |
bool | withListHeader, | ||
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 3501 of file parse.c.
References aliasColprintAddLanguage(), aliasColprintTableNew(), Assert, colprintTableDelete(), colprintTablePrint(), sParserObject::def, sParserDefinition::invisible, LANG_AUTO, LanguageCount, and LanguageTable.
Referenced by processListAliasesOption().
void printLanguageKinds | ( | const langType | language, |
bool | allKindFields, | ||
bool | withListHeader, | ||
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 3195 of file parse.c.
References colprintTableDelete(), sParserObject::def, sParserDefinition::invisible, isLanguageEnabled(), kindColprintTableNew(), kindColprintTablePrint(), LANG_AUTO, LanguageCount, LanguageTable, sParserDefinition::name, NULL, and printKinds().
Referenced by processListKindsOption().
void printLanguageList | ( | void | ) |
Definition at line 3548 of file parse.c.
References compareParsersByName(), eFree(), LanguageCount, LanguageTable, printLanguage(), and xMalloc.
Referenced by processListLanguagesOption().
void printLanguageMaps | ( | const langType | language, |
langmapType | type, | ||
bool | withListHeader, | ||
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 3426 of file parse.c.
References Assert, colprintTableDelete(), colprintTablePrint(), isLanguageVisible(), LANG_AUTO, LanguageCount, LanguageTable, LMAP_TABLE_OUTPUT, mapColprintAddLanguage(), mapColprintTableNew(), NULL, and printMaps().
Referenced by processListMapsOptionForType().
void printLanguageMultitableStatistics | ( | langType | language | ) |
Definition at line 4930 of file parse.c.
References LanguageTable, sParserObject::lregexControlBlock, and printMultitableStatistics().
Referenced by printParserStatisticsIfUsed().
void printLanguageParameters | ( | const langType | language, |
bool | withListHeader, | ||
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 3243 of file parse.c.
References colprintTableDelete(), sParserObject::def, sParserDefinition::invisible, LANG_AUTO, LanguageCount, LanguageTable, paramColprintTableNew(), paramColprintTablePrint(), and printParameters().
Referenced by processListParametersOption().
void printLanguageRoles | ( | const langType | language, |
const char * | letters, | ||
bool | withListHeader, | ||
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 3145 of file parse.c.
References colprintTableDelete(), initializeParser(), isLanguageVisible(), sParserObject::kindControlBlock, LANG_AUTO, LanguageCount, LanguageTable, roleColprintAddRoles(), roleColprintTableNew(), and roleColprintTablePrint().
Referenced by processListRolesOptions().
void printLanguageSubparsers | ( | const langType | language, |
bool | withListHeader, | ||
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 4872 of file parse.c.
References colprintTableDelete(), sParserObject::def, initializeParserOne(), sParserDefinition::invisible, LANG_AUTO, LanguageCount, LanguageTable, sParserObject::slaveControlBlock, subparserColprintAddSubparsers(), subparserColprintTableNew(), and subparserColprintTablePrint().
Referenced by processListSubparsersOptions().
void printMultilineRegexFlags | ( | bool | withListHeader, |
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 2201 of file lregex.c.
References ARRAY_SIZE, colprintTableDelete(), commonSpecFlagDef, flagsColprintAddDefinitions(), flagsColprintTableNew(), flagsColprintTablePrint(), guestPtrnFlagDef, multilinePtrnFlagDef, and regexFlagDefs.
Referenced by processListMultilineRegexFlagsOptions().
void printMultitableRegexFlags | ( | bool | withListHeader, |
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 2216 of file lregex.c.
References ARRAY_SIZE, colprintTableDelete(), commonSpecFlagDef, flagsColprintAddDefinitions(), flagsColprintTableNew(), flagsColprintTablePrint(), guestPtrnFlagDef, multilinePtrnFlagDef, multitablePtrnFlagDef, regexFlagDefs, and scopePtrnFlagDef.
Referenced by processListMultitableRegexFlagsOptions().
void printParserStatisticsIfUsed | ( | langType | lang | ) |
Definition at line 3798 of file parse.c.
References sParserObject::def, getLanguageName(), LanguageTable, printLanguageMultitableStatistics(), sParserDefinition::printStats, and sParserObject::used.
Referenced by batchMakeTags().
void printRegexFlags | ( | bool | withListHeader, |
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 2185 of file lregex.c.
References ARRAY_SIZE, colprintTableDelete(), commonSpecFlagDef, flagsColprintAddDefinitions(), flagsColprintTableNew(), flagsColprintTablePrint(), guestPtrnFlagDef, prePtrnFlagDef, regexFlagDefs, and scopePtrnFlagDef.
Referenced by processListRegexFlagsOptions().
void processLanguageMultitableExtendingOption | ( | langType | language, |
const char *const | parameter | ||
) |
Definition at line 4203 of file parse.c.
References eFree(), error(), eStrndup(), extendRegexTable(), FATAL, and LanguageTable.
Referenced by processMultitableExtendingOption().
bool processLanguageRegexOption | ( | langType | language, |
enum regexParserType | regptype, | ||
const char *const | parameter | ||
) |
Definition at line 4286 of file parse.c.
References LanguageTable, and processTagRegexOption().
Referenced by processMultilineRegexOption(), processMultitableRegexOption(), and processRegexOption().
bool removeLanguageExtensionMap | ( | const langType | language, |
const char *const | extension | ||
) |
Definition at line 1705 of file parse.c.
References LANG_AUTO, LanguageCount, and removeLanguageExtensionMap1().
Referenced by addLanguageExtensionMap(), and removeLanguageMap().
bool removeLanguagePatternMap | ( | const langType | language, |
const char *const | pattern | ||
) |
Definition at line 1665 of file parse.c.
References LANG_AUTO, LanguageCount, and removeLanguagePatternMap1().
Referenced by addLanguagePatternMap(), and removeLanguageMap().
bool runParserInNarrowedInputStream | ( | const langType | language, |
unsigned long | startLine, | ||
long | startCharOffset, | ||
unsigned long | endLine, | ||
long | endCharOffset, | ||
unsigned long | sourceLineOffset, | ||
int | promise | ||
) |
Definition at line 3889 of file parse.c.
References createTagsWithFallback1(), getInputFileName(), getLanguageName(), NULL, popNarrowedInputStream(), pushNarrowedInputStream(), and verbose().
Referenced by forcePromises().
void useRegexMethod | ( | const langType | language | ) |
Definition at line 4311 of file parse.c.
References Assert, sParserObject::def, LanguageCount, LanguageTable, sParserDefinition::method, and METHOD_REGEX.
Referenced by addCompiledTagCommon().
|
extern |
parserDefinitionFunc AntParser |
parserDefinitionFunc AsciidocParser | ( | void | ) |
parserDefinitionFunc AsmParser | ( | void | ) |
parserDefinitionFunc AspParser |
parserDefinitionFunc AutoconfParser |
parserDefinitionFunc AutoItParser |
parserDefinitionFunc AutomakeParser |
parserDefinitionFunc AwkParser |
parserDefinitionFunc BasicParser | ( | void | ) |
parserDefinitionFunc BetaParser |
parserDefinitionFunc BibtexParser | ( | void | ) |
parserDefinitionFunc ClojureParser |
parserDefinitionFunc CMakeParser |
parserDefinitionFunc CobolParser | ( | void | ) |
parserDefinitionFunc CParser | ( | void | ) |
parserDefinitionFunc CppParser | ( | void | ) |
parserDefinitionFunc CPreProParser |
parserDefinitionFunc CsharpParser | ( | void | ) |
parserDefinitionFunc CssParser | ( | void | ) |
parserDefinitionFunc CtagsParser |
parserDefinitionFunc CUDAParser |
parserDefinitionFunc DiffParser | ( | void | ) |
parserDefinitionFunc DosBatchParser |
parserDefinitionFunc DParser | ( | void | ) |
parserDefinitionFunc DtdParser |
parserDefinitionFunc DTSParser |
parserDefinitionFunc EiffelParser |
parserDefinitionFunc ElixirParser |
parserDefinitionFunc ElmParser |
parserDefinitionFunc EmacsLispParser |
parserDefinitionFunc ErlangParser | ( | void | ) |
parserDefinitionFunc FalconParser |
parserDefinitionFunc FlexParser | ( | void | ) |
parserDefinitionFunc FortranParser | ( | void | ) |
parserDefinitionFunc FyppParser |
parserDefinitionFunc GdbinitParser |
parserDefinitionFunc GoParser | ( | void | ) |
parserDefinitionFunc HtmlParser | ( | void | ) |
parserDefinitionFunc IniconfParser |
parserDefinitionFunc InkoParser |
parserDefinitionFunc ITclParser |
parserDefinitionFunc JavaParser | ( | void | ) |
parserDefinitionFunc JavaPropertiesParser |
parserDefinitionFunc JavaScriptParser | ( | void | ) |
parserDefinitionFunc JsonParser | ( | void | ) |
parserDefinitionFunc KconfigParser |
parserDefinitionFunc LdScriptParser |
parserDefinitionFunc LispParser |
parserDefinitionFunc LuaParser | ( | void | ) |
parserDefinitionFunc M4Parser |
parserDefinitionFunc MakefileParser | ( | void | ) |
parserDefinitionFunc ManParser |
parserDefinitionFunc MarkdownParser | ( | void | ) |
parserDefinitionFunc MatLabParser | ( | void | ) |
parserDefinitionFunc MooseParser |
parserDefinitionFunc MyrddinParser |
parserDefinitionFunc NsisParser | ( | void | ) |
parserDefinitionFunc ObjcParser | ( | void | ) |
parserDefinitionFunc OcamlParser |
parserDefinitionFunc OldCParser |
parserDefinitionFunc OldCppParser |
parserDefinitionFunc PascalParser | ( | void | ) |
parserDefinitionFunc PasswdParser |
parserDefinitionFunc Perl6Parser |
parserDefinitionFunc PerlParser | ( | void | ) |
parserDefinitionFunc PhpParser | ( | void | ) |
parserDefinitionFunc PodParser |
parserDefinitionFunc PowerShellParser | ( | void | ) |
parserDefinitionFunc ProtobufParser |
parserDefinitionFunc PuppetManifestParser |
parserDefinitionFunc PythonLoggingConfigParser |
parserDefinitionFunc PythonParser | ( | void | ) |
parserDefinitionFunc QemuHXParser |
parserDefinitionFunc QtMocParser |
parserDefinitionFunc R6ClassParser |
parserDefinitionFunc RexxParser |
parserDefinitionFunc RobotParser |
parserDefinitionFunc RParser | ( | void | ) |
parserDefinitionFunc RpmSpecParser |
parserDefinitionFunc RSpecParser |
parserDefinitionFunc RstParser | ( | void | ) |
parserDefinitionFunc RubyParser | ( | void | ) |
parserDefinitionFunc RustParser | ( | void | ) |
parserDefinitionFunc S4ClassParser |
parserDefinitionFunc SchemeParser |
parserDefinitionFunc SCSSParser |
parserDefinitionFunc ShParser | ( | void | ) |
parserDefinitionFunc SlangParser |
parserDefinitionFunc SmlParser |
parserDefinitionFunc SqlParser | ( | void | ) |
parserDefinitionFunc SystemdUnitParser |
parserDefinitionFunc SystemTapParser |
parserDefinitionFunc SystemVerilogParser |
parserDefinitionFunc TclOOParser |
parserDefinitionFunc TclParser | ( | void | ) |
parserDefinitionFunc TexBeamerParser |
parserDefinitionFunc TexParser | ( | void | ) |
parserDefinitionFunc TTCNParser |
parserDefinitionFunc TypeScriptParser |
parserDefinitionFunc VeraParser |
parserDefinitionFunc VerilogParser | ( | void | ) |
parserDefinitionFunc VhdlParser | ( | void | ) |
parserDefinitionFunc VimParser |
parserDefinitionFunc WindResParser |
parserDefinitionFunc YaccParser |
parserDefinitionFunc YumRepoParser |
parserDefinitionFunc ZephirParser | ( | void | ) |