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 "options_p.h"
#include <string.h>
#include "ctags.h"
#include "debug.h"
#include "entry_p.h"
#include "field_p.h"
#include "flags_p.h"
#include "htable.h"
#include "keyword.h"
#include "lxpath_p.h"
#include "param.h"
#include "param_p.h"
#include "parse_p.h"
#include "parsers_p.h"
#include "promise.h"
#include "promise_p.h"
#include "ptag_p.h"
#include "ptrarray.h"
#include "read.h"
#include "read_p.h"
#include "routines.h"
#include "routines_p.h"
#include "stats_p.h"
#include "subparser.h"
#include "subparser_p.h"
#include "trace.h"
#include "trashbox.h"
#include "trashbox_p.h"
#include "vstring.h"
#include "writer_p.h"
#include "xtag_p.h"
Go to the source code of this file.
Classes | |
struct | parserCandidate |
struct | sParserObject |
struct | getLangCtx |
struct | taster |
struct | GetLanguageRequest |
struct | preLangDefFlagData |
struct | langKindDefinitionStruct |
struct | langKindRoleDefinitionStruct |
struct | makeKindDescriptionPseudoTagData |
Macros | |
#define | OPTION_WRITE |
#define | RING_SIZE 5 |
#define | GLC_FOPEN_IF_NECESSARY0(_glc_, _label_) |
#define | GLC_FOPEN_IF_NECESSARY(_glc_, _label_, _doesParserRequireMemoryStream_) |
#define | GLC_FCLOSE(_glc_) |
#define | LANGDEF_FLAG_DEDICATED "dedicated" |
#define | LANGDEF_FLAG_SHARED "shared" |
#define | LANGDEF_FLAG_BIDIR "bidirectional" |
#define | PREFIX "_roledef-" |
#define | PREFIX_LEN strlen(PREFIX) |
#define | PREFIX "kinds-" |
#define | PREFIX_LEN strlen(PREFIX) |
#define | PREFIX "roles-" |
#define | PREFIX_LEN strlen(PREFIX) |
#define | PREFIX "alias-" |
#define | pretendOptionPrefix "_pretend-" |
#define | SELF_TEST_PARSER "CTagsSelfTest" |
Typedefs | |
typedef struct sParserObject | parserObject |
typedef void(* | languageCallback) (langType language, void *user_data) |
typedef void(* | kindCallback) (langType language, int kindIndex, void *user_data) |
Enumerations | |
enum | specType { SPEC_NONE , SPEC_NAME , SPEC_ALIAS = SPEC_NAME , SPEC_EXTENSION , SPEC_PATTERN } |
enum | CTST_Kind { K_BROKEN , K_NO_LETTER , K_NO_LONG_NAME , K_NOTHING_SPECIAL , K_GUEST_BEGINNING , K_GUEST_END , K_DISABLED , K_ENABLED , K_ROLES , K_ROLES_DISABLED , K_FIELD_TESTING , KIND_COUNT } |
enum | CTST_BrokenRole { R_BROKEN_REF } |
enum | CTST_DisabledKindRole { R_DISABLED_KIND_DISABLED_ROLE , R_DISABLED_KIND_ENABLED_ROLE } |
enum | CTST_EnabledKindRole { R_ENABLED_KIND_DISABLED_ROLE , R_ENABLED_KIND_ENABLED_ROLE } |
enum | CTST_RolesKindRole { R_ROLES_KIND_A_ROLE , R_ROLES_KIND_B_ROLE , R_ROLES_KIND_C_ROLE , R_ROLES_KIND_D_ROLE } |
enum | CTST_RolesDisableKindRole { R_ROLES_DISABLED_KIND_A_ROLE , R_ROLES_DISABLED_KIND_B_ROLE } |
enum | CTSTField { F_BOOLEAN_FIELD , F_BOOLEAN_AND_STRING_FIELD , COUNT_FIELD } |
Functions | |
static void | lazyInitialize (langType language) |
static void | addParserPseudoTags (langType language) |
static void | installKeywordTable (const langType language) |
static void | installTagRegexTable (const langType language) |
static void | installTagXpathTable (const langType language) |
static void | anonResetMaybe (parserObject *parser) |
static void | setupAnon (void) |
static void | teardownAnon (void) |
static void | uninstallTagXpathTable (const langType language) |
static parserDefinition * | FallbackParser (void) |
static parserDefinition * | CTagsParser (void) |
static parserDefinition * | CTagsSelfTestParser (void) |
static bool | isLanguageNameChar (int c) |
unsigned int | countParsers (void) |
int | makeSimpleTag (const vString *const name, const int kindIndex) |
int | makeSimpleRefTag (const vString *const name, const int kindIndex, int roleIndex) |
int | makeSimplePlaceholder (const vString *const name) |
bool | isLanguageEnabled (const langType language) |
bool | isLanguageVisible (const langType language) |
parserDefinition * | parserNew (const char *name) |
bool | doesLanguageAllowNullTag (const langType language) |
bool | doesLanguageRequestAutomaticFQTag (const langType language) |
static const char * | getLanguageNameFull (const langType language, bool noPretending) |
const char * | getLanguageName (const langType language) |
const char * | getLanguageKindName (const langType language, const int kindIndex) |
int | defineLanguageKind (const langType language, kindDefinition *def, freeKindDefFunc freeKindDef) |
unsigned int | countLanguageKinds (const langType language) |
unsigned int | countLanguageRoles (const langType language, int kindIndex) |
kindDefinition * | getLanguageKind (const langType language, int kindIndex) |
kindDefinition * | getLanguageKindForLetter (const langType language, char kindLetter) |
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) |
langType | getNamedLanguageFull (const char *const name, size_t len, bool noPretending) |
langType | getNamedLanguage (const char *const name, size_t len) |
static langType | getNameOrAliasesLanguageAndSpec (const char *const key, langType start_index, const char **const spec, enum specType *specType) |
langType | getLanguageForCommand (const char *const command, langType startFrom) |
static langType | getPatternLanguageAndSpec (const char *const baseName, langType start_index, const char **const spec, enum specType *specType) |
langType | getLanguageForFilename (const char *const filename, langType startFrom) |
const char * | scopeSeparatorFor (langType language, int kindIndex, int parentKindIndex) |
static bool | processLangDefineScopesep (const langType language, const char *const option, const char *const parameter) |
bool | processScopesepOption (const char *const option, const char *const parameter) |
static parserCandidate * | parserCandidateNew (unsigned int count) |
static unsigned int | nominateLanguageCandidates (const char *const key, parserCandidate **candidates) |
static unsigned int | nominateLanguageCandidatesForPattern (const char *const baseName, parserCandidate **candidates) |
static vString * | extractEmacsModeAtFirstLine (MIO *input) |
static vString * | determineInterpreter (const char *const cmd) |
static vString * | extractInterpreter (MIO *input) |
static vString * | determineEmacsModeAtFirstLine (const char *const line) |
static vString * | determineEmacsModeAtEOF (MIO *const fp) |
static vString * | extractEmacsModeLanguageAtEOF (MIO *input) |
static vString * | determineVimFileType (const char *const modeline) |
static vString * | extractVimFileType (MIO *input) |
static vString * | extractMarkGeneric (MIO *input, vString *(*determiner)(const char *const, void *), void *data) |
static vString * | determineZshAutoloadTag (const char *const modeline, void *data) |
static vString * | extractZshAutoloadTag (MIO *input) |
static vString * | determinePHPMark (const char *const modeline, void *data) |
static vString * | extractPHPMark (MIO *input) |
static langType | tasteLanguage (struct getLangCtx *glc, const struct taster *const tasters, int n_tasters, langType *fallback) |
static bool | hasTheSameSelector (langType lang, selectLanguage candidate_selector) |
static selectLanguage | commonSelector (const parserCandidate *candidates, int n_candidates) |
static int | pickLanguageBySelection (selectLanguage selector, MIO *input, parserCandidate *candidates, unsigned int nCandidates) |
static int | compareParsersByName (const void *a, const void *b) |
static int | sortParserCandidatesBySpecType (const void *a, const void *b) |
static unsigned int | sortAndFilterParserCandidates (parserCandidate *candidates, unsigned int n_candidates) |
static void | verboseReportCandidate (const char *header, parserCandidate *candidates, unsigned int n_candidates) |
static bool | doesCandidatesRequireMemoryStream (const parserCandidate *candidates, int n_candidates) |
static langType | getSpecLanguageCommon (const char *const spec, struct getLangCtx *glc, unsigned int nominate(const char *const, parserCandidate **), langType *fallback) |
static langType | getSpecLanguage (const char *const spec, struct getLangCtx *glc, langType *fallback) |
static langType | getPatternLanguage (const char *const baseName, struct getLangCtx *glc, langType *fallback) |
static langType | getFileLanguageForRequestInternal (struct GetLanguageRequest *req) |
static langType | getFileLanguageForRequest (struct GetLanguageRequest *req) |
langType | getLanguageForFilenameAndContents (const char *const fileName) |
static void | foreachLanguage (languageCallback callback, void *user_data) |
static void | printLanguageMap (const langType language, FILE *fp) |
void | installLanguageMapDefault (const langType language) |
void | installLanguageMapDefaults (void) |
void | installLanguageAliasesDefault (const langType language) |
void | installLanguageAliasesDefaults (void) |
void | clearLanguageMap (const langType language) |
void | clearLanguageAliases (const langType language) |
static bool | removeLanguagePatternMap1 (const langType language, const char *const pattern) |
bool | removeLanguagePatternMap (const langType language, const char *const pattern) |
void | addLanguagePatternMap (const langType language, const char *ptrn, bool exclusiveInAllLanguages) |
static bool | removeLanguageExtensionMap1 (const langType language, const char *const extension) |
bool | removeLanguageExtensionMap (const langType language, const char *const extension) |
void | addLanguageExtensionMap (const langType language, const char *extension, bool exclusiveInAllLanguages) |
void | addLanguageAlias (const langType language, const char *alias) |
void | enableLanguage (const langType language, const bool state) |
void | enableLanguages (const bool state) |
static void | installFieldDefinition (const langType language) |
static void | installXtagDefinition (const langType language) |
static void | initializeParserOne (langType lang) |
void | initializeParser (langType lang) |
static void | linkDependenciesAtInitializeParsing (parserDefinition *const parser) |
static void | initializeParsingCommon (parserDefinition *def, bool is_builtin) |
void | initializeParsing (void) |
void | freeParserResources (void) |
static void | doNothing (void) |
static void | optlibRunBaseParser (void) |
static bool | optlibIsDedicatedSubparser (parserDefinition *def) |
void | enableDefaultFileKind (bool state) |
static void | pre_lang_def_flag_base_long (const char *const optflag, const char *const param, void *data) |
static void | pre_lang_def_flag_direction_long (const char *const optflag, const char *const param, void *data) |
static void | pre_lang_def_flag_autoFQTag_long (const char *const optflag, const char *const param, void *data) |
static void | optlibFreeDep (langType lang, bool initialized) |
static parserDefinition * | OptlibParser (const char *name, const char *base, subparserRunDirection direction) |
void | processLanguageDefineOption (const char *const option, const char *const parameter) |
bool | isLanguageKindEnabled (const langType language, int kindIndex) |
bool | isLanguageRoleEnabled (const langType language, int kindIndex, int roleIndex) |
bool | isLanguageKindRefOnly (const langType language, int kindIndex) |
static void | resetLanguageKinds (const langType language, const bool mode) |
static bool | enableLanguageKindForLetter (const langType language, const int kind, const bool mode) |
static bool | enableLanguageKindForName (const langType language, const char *const name, const bool mode) |
static void | processLangKindDefinition (const langType language, const char *const option, const char *const parameter) |
static void | freeKdef (kindDefinition *kdef) |
static char * | extractDescriptionAndFlags (const char *input, const char **flags) |
static void | pre_kind_def_flag_refonly_long (const char *const optflag, const char *const param, void *data) |
static bool | processLangDefineKind (const langType language, const char *const option, const char *const parameter) |
static void | freeRdef (roleDefinition *rdef) |
static bool | processLangDefineRole (const langType language, const char *const kindSpec, const char *const option, const char *const parameter) |
bool | processKinddefOption (const char *const option, const char *const parameter) |
bool | processRoledefOption (const char *const option, const char *const parameter) |
static void | processLangKindDefinitionEach (langType lang, void *user_data) |
static bool | parameterEnablingAllOrFileKind (const char *const option, const char *const parameter, bool following_plus_or_minus_op) |
bool | processKindsOption (const char *const option, const char *const parameter) |
static void | foreachKind (langType language, kindCallback callback, void *user_data) |
static void | resetKindRoles (const langType language, int kindIndex, const bool mode) |
static void | resetKindRolesAsCallback (const langType language, int kindIndex, void *user_data) |
static void | processLangKindRoleDefinition (const langType language, const int kindIndex, const char *const option, const char *const parameter) |
static void | processLangKindRoleDefinitionEach (langType language, void *user_data) |
bool | processRolesOption (const char *const option, const char *const parameter) |
void | printLanguageRoles (const langType language, const char *kindspecs, bool withListHeader, bool machinable, FILE *fp) |
static void | printKinds (langType language, bool indent, struct colprintTable *table) |
void | printLanguageKinds (const langType language, bool allKindFields, bool withListHeader, bool machinable, FILE *fp) |
static void | printParameters (struct colprintTable *table, langType language) |
void | printLanguageParameters (const langType language, bool withListHeader, bool machinable, FILE *fp) |
static void | processLangAliasOption (const langType language, const char *const parameter) |
bool | processAliasOption (const char *const option, const char *const parameter) |
static void | printMaps (const langType language, langmapType type) |
static struct colprintTable * | mapColprintTableNew (langmapType type) |
static void | mapColprintAddLanguage (struct colprintTable *table, langmapType type, const parserObject *parser) |
void | printLanguageMaps (const langType language, langmapType type, bool withListHeader, bool machinable, FILE *fp) |
static struct colprintTable * | aliasColprintTableNew (void) |
static void | aliasColprintAddLanguage (struct colprintTable *table, const parserObject *parser) |
void | printLanguageAliases (const langType language, bool withListHeader, bool machinable, FILE *fp) |
static void | printLanguage (const langType language, parserDefinition **ltable) |
void | printLanguageList (void) |
static void | xtagDefinitionDestroy (xtagDefinition *xdef) |
static bool | processLangDefineExtra (const langType language, const char *const option, const char *const parameter) |
bool | processExtradefOption (const char *const option, const char *const parameter) |
static void | fieldDefinitionDestroy (fieldDefinition *fdef) |
static bool | processLangDefineField (const langType language, const char *const option, const char *const parameter) |
bool | processFielddefOption (const char *const option, const char *const parameter) |
static rescanReason | createTagsForFile (const langType language, const unsigned int passCount) |
void | notifyLanguageRegexInputStart (langType language) |
void | notifyLanguageRegexInputEnd (langType language) |
static unsigned int | parserCorkFlags (parserDefinition *parser) |
static void | setupLanguageSubparsersInUse (const langType language) |
static subparser * | teardownLanguageSubparsersInUse (const langType language) |
static void | initializeParserStats (parserObject *parser) |
void | printParserStatisticsIfUsed (langType language) |
static bool | createTagsWithFallback1 (const langType language, langType *exclusive_subparser) |
bool | runParserInNarrowedInputStream (const langType language, unsigned long startLine, long startCharOffset, unsigned long endLine, long endCharOffset, unsigned long sourceLineOffset, int promise) |
static bool | createTagsWithFallback (const char *const fileName, const langType language, MIO *mio, bool *failureInOpenning) |
static void | printGuessedParser (const char *const fileName, langType language) |
bool | doesParserRequireMemoryStream (const langType language) |
bool | parseFile (const char *const fileName) |
static bool | parseMio (const char *const fileName, langType language, MIO *mio, bool useSourceFileTagPath, void *clientData) |
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) |
static void | matchLanguageMultilineRegexCommon (const langType language, bool(*func)(struct lregexControlBlock *, const vString *const), const vString *const allLines) |
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) |
static bool | lregexQueryParserAndSubparsers (const langType language, bool(*predicate)(struct lregexControlBlock *)) |
bool | hasLanguageMultilineRegexPatterns (const langType language) |
void | addLanguageCallbackRegex (const langType language, const char *const regex, const char *const flags, const regexCallback callback, bool *disabled, void *userData) |
bool | hasLanguageScopeActionInRegex (const langType language) |
void | matchLanguageRegex (const langType language, const vString *const line) |
bool | processLanguageRegexOption (langType language, enum regexParserType regptype, const char *const parameter) |
bool | processTabledefOption (const char *const option, const char *const parameter) |
void | useRegexMethod (const langType language) |
static void | useXpathMethod (const langType language) |
const tagXpathTableTable * | getXpathTableTable (const langType language, unsigned int nth) |
unsigned int | getXpathFileSpecCount (const langType language) |
xpathFileSpec * | getXpathFileSpec (const langType language, unsigned int nth) |
bool | makeKindSeparatorsPseudoTags (const langType language, const ptagDesc *pdesc) |
static bool | makeKindDescriptionPseudoTag (kindDefinition *kind, void *user_data) |
bool | makeKindDescriptionsPseudoTags (const langType language, const ptagDesc *pdesc) |
static bool | makeFieldDescriptionPseudoTag (const langType language, fieldType f, const ptagDesc *pdesc) |
bool | makeFieldDescriptionsPseudoTags (const langType language, const ptagDesc *pdesc) |
static bool | makeExtraDescriptionPseudoTag (const langType language, xtagType x, const ptagDesc *pdesc) |
bool | makeExtraDescriptionsPseudoTags (const langType language, const ptagDesc *pdesc) |
static unsigned int | anonHash (const unsigned char *str) |
void | anonHashString (const char *filename, char buf[9]) |
void | anonGenerate (vString *buffer, const char *prefix, int kind) |
vString * | anonGenerateNew (const char *prefix, int kind) |
void | applyParameter (const langType language, const char *name, const char *args) |
subparser * | getNextSubparser (subparser *last, bool includingNoneCraftedParser) |
slaveParser * | getNextSlaveParser (slaveParser *last) |
void | scheduleRunningBaseparser (int dependencyIndex) |
bool | isParserMarkedNoEmission (void) |
subparser * | getSubparserRunningBaseparser (void) |
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) |
void | printLanguageMultitableStatistics (langType language) |
void | addLanguageRegexTable (const langType language, const char *name) |
void | addLanguageTagMultiTableRegex (const langType language, const char *const table_name, const char *const regex, const char *const name, const char *const kinds, const char *const flags, bool *disabled) |
bool | processPretendOption (const char *const option, const char *const parameter) |
static void | dontFindTags (void) |
static void | createCTSTTags (void) |
static void | initStatsCTST (langType lang) |
static void | printStatsCTST (langType lang) |
Variables | |
const char * | specTypeName [] |
static parserDefinitionFunc * | BuiltInParsers [] |
static parserObject * | LanguageTable = NULL |
static unsigned int | LanguageCount = 0 |
static hashTable * | LanguageHTable = NULL |
static kindDefinition | defaultFileKind |
static kindDefinition | kindGhost |
static const struct taster | eager_tasters [] |
static flagDefinition | PreLangDefFlagDef [] |
static flagDefinition | PreKindDefFlagDef [] |
static ptrArray * | parsersUsedInCurrentInput |
static kindDefinition | CtagsKinds [] |
static bool | CTST_GatherStats |
static int | CTST_num_handled_char |
static roleDefinition | CTST_BrokenRoles [] |
static roleDefinition | CTST_DisabledKindRoles [] |
static roleDefinition | CTST_EnabledKindRoles [] |
static roleDefinition | CTST_RolesKindRoles [] |
static roleDefinition | CTST_RolesDisabledKindRoles [] |
static kindDefinition | CTST_Kinds [KIND_COUNT] |
static fieldDefinition | CTSTFields [COUNT_FIELD] |
#define GLC_FCLOSE | ( | _glc_ | ) |
#define GLC_FOPEN_IF_NECESSARY | ( | _glc_, | |
_label_, | |||
_doesParserRequireMemoryStream_ | |||
) |
#define GLC_FOPEN_IF_NECESSARY0 | ( | _glc_, | |
_label_ | |||
) |
#define PREFIX "_roledef-" |
#define PREFIX "kinds-" |
#define PREFIX "roles-" |
#define PREFIX "alias-" |
#define PREFIX_LEN strlen(PREFIX) |
#define PREFIX_LEN strlen(PREFIX) |
#define PREFIX_LEN strlen(PREFIX) |
#define pretendOptionPrefix "_pretend-" |
#define RING_SIZE 5 |
typedef void(* kindCallback) (langType language, int kindIndex, void *user_data) |
typedef void(* languageCallback) (langType language, void *user_data) |
typedef struct sParserObject parserObject |
enum CTST_BrokenRole |
enum CTST_EnabledKindRole |
enum CTST_Kind |
enum CTST_RolesKindRole |
enum CTSTField |
enum specType |
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 addLanguageCallbackRegex | ( | const langType | language, |
const char *const | regex, | ||
const char *const | flags, | ||
const regexCallback | callback, | ||
bool * | disabled, | ||
void * | userData | ||
) |
Definition at line 4255 of file parse.c.
References addCallbackRegex(), and LanguageTable.
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().
void addLanguageRegexTable | ( | const langType | language, |
const char * | name | ||
) |
Definition at line 4936 of file parse.c.
References addRegexTable(), LanguageTable, sParserObject::lregexControlBlock, and name.
void addLanguageTagMultiTableRegex | ( | const langType | language, |
const char *const | table_name, | ||
const char *const | regex, | ||
const char *const | name, | ||
const char *const | kinds, | ||
const char *const | flags, | ||
bool * | disabled | ||
) |
Definition at line 4942 of file parse.c.
References addTagMultiTableRegex(), LanguageTable, sParserObject::lregexControlBlock, and name.
|
static |
Definition at line 4029 of file parse.c.
References isPtagParserSpecific(), LanguageTable, makePtagIfEnabled(), sParserObject::pseudoTagPrinted, and PTAG_COUNT.
Referenced by createTagsWithFallback1().
|
static |
Definition at line 3483 of file parse.c.
References colprintLineAppendColumnCString(), colprintLineAppendColumnVString(), colprintTableGetNewLine(), count, sParserObject::currentAliases, sParserObject::def, line, sParserDefinition::name, stringListCount(), and stringListItem().
Referenced by printLanguageAliases().
|
static |
Definition at line 3478 of file parse.c.
References colprintTableNew(), and NULL.
Referenced by printLanguageAliases().
void anonGenerate | ( | vString * | buffer, |
const char * | prefix, | ||
int | kind | ||
) |
Definition at line 4699 of file parse.c.
References anonHashString(), getInputFileName(), getInputLanguage(), LanguageTable, vStringCatS(), and vStringCopyS().
Referenced by anonGenerateNew(), parseES6Class(), and parseFunction().
vString * anonGenerateNew | ( | const char * | prefix, |
int | kind | ||
) |
Definition at line 4720 of file parse.c.
References anonGenerate(), and vStringNew().
Referenced by matchTagPattern().
|
static |
Definition at line 4682 of file parse.c.
Referenced by anonHashString().
void anonHashString | ( | const char * | filename, |
char | buf[9] | ||
) |
Definition at line 4693 of file parse.c.
References anonHash(), and filename.
Referenced by anonGenerate(), and processAnonHashOption().
|
static |
Definition at line 4673 of file parse.c.
References parsersUsedInCurrentInput, ptrArrayAdd(), and ptrArrayHas().
Referenced by createTagsWithFallback1().
void applyParameter | ( | const langType | language, |
const char * | name, | ||
const char * | args | ||
) |
Definition at line 4729 of file parse.c.
References Assert, sParserObject::def, error(), FATAL, sParameterHandlerTable::handleParameter, initializeParserOne(), LanguageCount, LanguageTable, sParameterHandlerTable::name, sParserDefinition::name, name, sParserDefinition::parameterHandlerCount, and sParserDefinition::parameterHandlerTable.
Referenced by addIgnoreListFromFile(), processIf0Option(), processIgnoreOption(), processParamOption(), and readIgnoreList().
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().
|
static |
Definition at line 1138 of file parse.c.
References Assert, sParserObject::def, hasTheSameSelector(), parserCandidate::lang, LanguageTable, NULL, and sParserDefinition::selectLanguage.
Referenced by getSpecLanguageCommon().
|
static |
Definition at line 1190 of file parse.c.
References strcasecmp.
Referenced by printLanguageList(), and sortParserCandidatesBySpecType().
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().
|
static |
Definition at line 5177 of file parse.c.
References assignRole(), attachParserField(), CTST_GatherStats, CTST_Kinds, CTST_num_handled_char, CTSTFields, sTagEntryInfo::extensionFields, F_BOOLEAN_AND_STRING_FIELD, F_BOOLEAN_FIELD, getEntryInCorkQueue(), getInputLineNumber(), initRefTagEntry(), initTagEntry(), K_BROKEN, K_DISABLED, K_ENABLED, K_FIELD_TESTING, K_GUEST_BEGINNING, K_GUEST_END, K_NO_LETTER, K_NO_LONG_NAME, K_NOTHING_SPECIAL, K_ROLES, K_ROLES_DISABLED, KIND_COUNT, line, makePromise(), makeTagEntry(), name, NULL, R_DISABLED_KIND_DISABLED_ROLE, R_DISABLED_KIND_ENABLED_ROLE, R_ENABLED_KIND_DISABLED_ROLE, R_ENABLED_KIND_ENABLED_ROLE, R_ROLES_DISABLED_KIND_A_ROLE, R_ROLES_DISABLED_KIND_B_ROLE, R_ROLES_KIND_A_ROLE, R_ROLES_KIND_B_ROLE, R_ROLES_KIND_C_ROLE, R_ROLES_KIND_D_ROLE, readLineFromInputFile(), ROLE_DEFINITION_INDEX, sTagEntryInfo::scopeKindIndex, sTagEntryInfo::scopeName, SELF_TEST_PARSER, TRACE_ENTER_TEXT, and TRACE_LEAVE.
Referenced by CTagsSelfTestParser().
|
static |
Definition at line 3708 of file parse.c.
References Assert, sParserObject::def, LanguageTable, notifyInputEnd(), notifyInputStart(), notifyLanguageRegexInputEnd(), notifyLanguageRegexInputStart(), NULL, sParserDefinition::parser, sParserDefinition::parser2, RESCAN_NONE, and resetInputFile().
Referenced by createTagsWithFallback1().
|
static |
Definition at line 3918 of file parse.c.
References Assert, closeInputFile(), createTagsWithFallback1(), forcePromises(), LANG_IGNORE, LanguageCount, makeFileTag(), openInputFile(), popLanguage(), and pushLanguage().
Referenced by parseMio().
|
static |
Definition at line 3814 of file parse.c.
References addParserPseudoTags(), anonResetMaybe(), breakPromisesAfter(), CORK_QUEUE, corkTagFile(), createTagsForFile(), sParserObject::def, getLastPromise(), getSubparserLanguage(), hasLanguageMultilineRegexPatterns(), initializeParser(), initializeParserStats(), LanguageTable, NULL, numTagsAdded(), parserCorkFlags(), readLineFromInputFile(), RESCAN_APPEND, RESCAN_FAILED, RESCAN_NONE, setNumTagsAdded(), setTagFilePosition(), setupLanguageSubparsersInUse(), tagFilePosition(), teardownLanguageSubparsersInUse(), uncorkTagFile(), and writerRescanFailed().
Referenced by createTagsWithFallback(), and runParserInNarrowedInputStream().
|
static |
Definition at line 5040 of file parse.c.
References ARRAY_SIZE, CtagsKinds, dontFindTags(), sParserDefinition::extensions, sParserDefinition::invisible, sParserDefinition::kindCount, sParserDefinition::kindTable, NULL, sParserDefinition::parser, and parserNew().
|
static |
Definition at line 5355 of file parse.c.
References ARRAY_SIZE, CORK_QUEUE, createCTSTTags(), CTST_Kinds, CTSTFields, sParserDefinition::extensions, sParserDefinition::fieldCount, sParserDefinition::fieldTable, sParserDefinition::initStats, initStatsCTST(), sParserDefinition::invisible, KIND_COUNT, sParserDefinition::kindCount, sParserDefinition::kindTable, NULL, sParserDefinition::parser, parserNew(), sParserDefinition::printStats, printStatsCTST(), SELF_TEST_PARSER, sParserDefinition::useCork, and sParserDefinition::useMemoryStreamInput.
int defineLanguageKind | ( | const langType | language, |
kindDefinition * | def, | ||
freeKindDefFunc | freeKindDef | ||
) |
Definition at line 301 of file parse.c.
References defineKind(), and LanguageTable.
Referenced by setKind().
Definition at line 850 of file parse.c.
References isLanguageNameChar(), line, NULL, readLineRaw(), strstr(), vStringClear, vStringDelete(), vStringNew(), and vStringPut().
Referenced by extractEmacsModeLanguageAtEOF().
|
static |
Definition at line 788 of file parse.c.
References isLanguageNameChar(), line, NULL, strncasecmp, strstr(), vStringClear, vStringLower, vStringNew(), and vStringPut().
Referenced by extractEmacsModeAtFirstLine().
|
static |
Definition at line 743 of file parse.c.
References vStringClear, vStringNew(), vStringPut(), and vStringValue.
Referenced by extractInterpreter().
|
static |
Definition at line 1029 of file parse.c.
References NULL, and vStringNewInit().
Referenced by extractPHPMark().
|
static |
Definition at line 902 of file parse.c.
References ARRAY_SIZE, NULL, strrstr(), vStringNew(), and vStringPut().
Referenced by extractVimFileType().
|
static |
Definition at line 1008 of file parse.c.
References NULL, and vStringNewInit().
Referenced by extractZshAutoloadTag().
|
static |
Definition at line 1252 of file parse.c.
References doesParserRequireMemoryStream().
Referenced by getSpecLanguageCommon().
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().
|
static |
Definition at line 1989 of file parse.c.
Referenced by lazyInitialize().
|
static |
Definition at line 5032 of file parse.c.
Referenced by CTagsParser().
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().
|
static |
Definition at line 2260 of file parse.c.
References enableKind(), getLanguageKindForLetter(), kindControlBlock::kind, and NULL.
Referenced by processLangKindDefinition().
|
static |
Definition at line 2273 of file parse.c.
References enableKind(), getLanguageKindForName(), name, and NULL.
Referenced by processLangKindDefinition().
void enableLanguages | ( | const bool | state | ) |
Definition at line 1761 of file parse.c.
References enableLanguage(), and LanguageCount.
Referenced by processLanguagesOption().
|
static |
Definition at line 2370 of file parse.c.
References LONG_FLAGS_OPEN, NULL, vStringDeleteUnwrap(), vStringNew(), and vStringPut().
Referenced by processLangDefineExtra(), processLangDefineField(), processLangDefineKind(), and processLangDefineRole().
Definition at line 833 of file parse.c.
References determineEmacsModeAtFirstLine(), line, NULL, readLineRaw(), vStringDelete(), vStringLength, and vStringNew().
Referenced by extractInterpreter().
Definition at line 880 of file parse.c.
References determineEmacsModeAtEOF(), mio_seek(), NULL, vStringDelete(), and vStringLength.
Definition at line 758 of file parse.c.
References determineInterpreter(), extractEmacsModeAtFirstLine(), line, NULL, readLineRaw(), vStringDelete(), and vStringNew().
|
static |
Definition at line 993 of file parse.c.
References line, NULL, readLineRaw(), vStringDelete(), and vStringNew().
Referenced by extractPHPMark(), and extractZshAutoloadTag().
Definition at line 1038 of file parse.c.
References determinePHPMark(), extractMarkGeneric(), and NULL.
Definition at line 928 of file parse.c.
References ARRAY_SIZE, determineVimFileType(), NULL, readLineRaw(), RING_SIZE, strstr(), vStringDelete(), vStringLength, vStringNew(), and vStringValue.
Definition at line 1024 of file parse.c.
References determineZshAutoloadTag(), extractMarkGeneric(), and NULL.
|
static |
Definition at line 5007 of file parse.c.
References sParserDefinition::enabled, sParserDefinition::extensions, findRegexTags(), sParserDefinition::kindCount, sParserDefinition::kindTable, sParserDefinition::method, METHOD_REGEX, NULL, sParserDefinition::parser, and parserNew().
|
static |
Definition at line 3633 of file parse.c.
References sFieldDefinition::description, eFree(), and sFieldDefinition::name.
Referenced by processLangDefineField().
|
static |
Definition at line 2874 of file parse.c.
References countLanguageKinds().
Referenced by processLangKindRoleDefinitionEach(), and processRolesOption().
|
static |
Definition at line 1525 of file parse.c.
References sParserObject::def, LANG_IGNORE, LanguageCount, LanguageTable, sParserDefinition::name, and NULL.
Referenced by processKindsOption(), and processRolesOption().
|
static |
Definition at line 2363 of file parse.c.
References sKindDefinition::description, eFree(), and sKindDefinition::name.
Referenced by processLangDefineKind().
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().
|
static |
Definition at line 2529 of file parse.c.
References sRoleDefinition::description, eFree(), and sRoleDefinition::name.
Referenced by processLangDefineRole().
|
static |
Definition at line 1496 of file parse.c.
References error(), FATAL, getFileLanguageForRequestInternal(), getLanguageName(), isLanguageEnabled(), LANG_AUTO, sOptionValues::language, and Option.
Referenced by getLanguageForFilenameAndContents(), and parseFileWithMio().
|
static |
Definition at line 1375 of file parse.c.
References ARRAY_SIZE, baseFilename(), baseFilenameSansExtensionNew(), eager_tasters, eFree(), getLangCtx::err, eStat(), eStatFree(), fileStatus::exists, fallback, getLangCtx::fileName, GetLanguageRequest::fileName, getLanguageName(), getPatternLanguage(), GLC_FCLOSE, GLC_FOPEN_IF_NECESSARY, sOptionValues::guessLanguageEagerly, getLangCtx::input, fileStatus::isExecutable, LANG_FALLBACK, LANG_IGNORE, LanguageTable, GetLanguageRequest::mio, mio_ref(), mio_rewind(), NULL, Option, tasteLanguage(), GetLanguageRequest::type, and verbose().
Referenced by getFileLanguageForRequest().
Definition at line 451 of file parse.c.
References baseFilename(), command, and getNameOrAliasesLanguageAndSpec().
Definition at line 520 of file parse.c.
References baseFilename(), filename, and getPatternLanguageAndSpec().
Referenced by fillGuestRequest().
langType getLanguageForFilenameAndContents | ( | const char *const | fileName | ) |
Definition at line 1514 of file parse.c.
References GetLanguageRequest::fileName, getFileLanguageForRequest(), GetLanguageRequest::GLR_DISCARD, and GetLanguageRequest::type.
Referenced by setSourceFileName().
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 * getLanguageKindForLetter | ( | const langType | language, |
char | kindLetter | ||
) |
Definition at line 338 of file parse.c.
References Assert, sParserObject::fileKind, getKindForLetter(), KIND_GHOST_LETTER, kindGhost, LanguageCount, and LanguageTable.
Referenced by enableLanguageKindForLetter(), setKind(), and tm_ctags_get_kind_name().
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().
const char * getLanguageKindName | ( | const langType | language, |
const int | kindIndex | ||
) |
Definition at line 289 of file parse.c.
References getLanguageKind(), and sKindDefinition::name.
const char * getLanguageName | ( | const langType | language | ) |
Definition at line 284 of file parse.c.
References getLanguageNameFull().
Referenced by addLanguageMap(), addTagRegexInternal(), chooseExclusiveSubparser(), common_flag_extra_long(), common_flag_field_long(), defineKind(), defineRole(), defineScopeSeparator(), defineXtag(), dumpKeywordTable(), enableField(), extendRegexTable(), extractMapFromParameter(), fieldColprintAddLine(), getFileLanguageForRequest(), getFileLanguageForRequestInternal(), getInputLanguageName(), guestRequestSubmit(), installLanguageAliasesDefaults(), installLanguageMapDefaults(), kindColprintAddLanguageLines(), kindColprintFillLine(), makeExtraDescriptionPseudoTag(), makeFieldDescriptionPseudoTag(), matchMultilineRegexPattern(), matchMultitableRegex(), matchMultitableRegexTable(), openInputFile(), paramColprintAddParameter(), printGuessedParser(), printMessage(), printMultitableMessage(), printMultitableStatistics(), printParserStatisticsIfUsed(), processAliasOption(), processLangKindRoleDefinition(), processLanguageMap(), processMapOption(), processParamOption(), processRoledefOption(), removeLanguageExtensionMap1(), removeLanguageMap(), removeLanguagePatternMap1(), renderEscapedName(), renderFieldLanguage(), roleColprintAddRoles(), runParserInNarrowedInputStream(), scheduleRunningBaseparser(), setKind(), subparserColprintAddSubparsers(), tm_ctags_get_lang_name(), and xtagColprintAddLine().
|
static |
Definition at line 258 of file parse.c.
References Assert, sParserObject::def, LANG_IGNORE, LanguageCount, LanguageTable, sParserDefinition::name, and sParserObject::pretendingAsLanguage.
Referenced by getLanguageName(), and processPretendOption().
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 getNamedLanguage | ( | const char *const | name, |
size_t | len | ||
) |
Definition at line 406 of file parse.c.
References getNamedLanguageFull(), and name.
Referenced by addIgnoreListFromFile(), doesParserRequireMemoryStream(), fillGuestRequest(), getLanguageComponentInFieldName(), initializeDependencies(), kindColprintFillLine(), linkDependenciesAtInitializeParsing(), makePromise(), pickLanguageBySelection(), pre_lang_def_flag_base_long(), pre_ptrn_flag_guest_long(), processIf0Option(), processIgnoreOption(), processKindsOption(), processLangSpecificExtraOption(), processLangSpecificFieldsOption(), processLanguageDefineOption(), processLanguageForceOption(), processLanguageMap(), processLanguagesOption(), processListAliasesOption(), processListExtrasOption(), processListFieldsOption(), processListKindsOption(), processListMapsOptionForType(), processListParametersOption(), processListRolesOptions(), processListSubparsersOptions(), processRolesOption(), readIgnoreList(), scheduleRunningBaseparser(), selectByArrowOfR(), selectByObjectiveCKeywords(), selectByRexxCommentAndDosbatchLabelPrefix(), tm_ctags_get_named_lang(), and writeEtagsEntry().
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().
|
static |
Definition at line 411 of file parse.c.
References sParserObject::currentAliases, sParserObject::def, sParserDefinition::enabled, LANG_AUTO, LANG_IGNORE, LanguageCount, LanguageTable, sParserDefinition::name, NULL, SPEC_ALIAS, SPEC_NAME, strcasecmp, stringListFileFinds(), and vStringValue.
Referenced by getLanguageForCommand(), and nominateLanguageCandidates().
slaveParser * getNextSlaveParser | ( | slaveParser * | last | ) |
Definition at line 4781 of file parse.c.
References getFirstSlaveParser(), getInputLanguage(), LanguageTable, sSlaveParser::next, NULL, and sParserObject::slaveControlBlock.
Definition at line 4756 of file parse.c.
References getFirstSubparser(), getInputLanguage(), getNextSubparser(), getSubparserLanguage(), isLanguageEnabled(), LanguageTable, METHOD_NOT_CRAFTED, sSubparser::next, NULL, and sParserObject::slaveControlBlock.
Referenced by getNextSubparser().
|
static |
Definition at line 1327 of file parse.c.
References fallback, getSpecLanguageCommon(), and nominateLanguageCandidatesForPattern().
Referenced by getFileLanguageForRequestInternal().
|
static |
Definition at line 462 of file parse.c.
References sParserObject::currentExtensions, sParserObject::currentPatterns, sParserObject::def, sParserDefinition::enabled, fileExtension(), LANG_AUTO, LANG_IGNORE, LanguageCount, LanguageTable, NULL, SPEC_EXTENSION, SPEC_PATTERN, stringListExtensionFinds(), stringListFileFinds(), and vStringValue.
Referenced by getLanguageForFilename(), and nominateLanguageCandidatesForPattern().
|
static |
Definition at line 1319 of file parse.c.
References fallback, getSpecLanguageCommon(), and nominateLanguageCandidates().
Referenced by tasteLanguage().
|
static |
Definition at line 1264 of file parse.c.
References Assert, commonSelector(), doesCandidatesRequireMemoryStream(), eFree(), fallback, GLC_FOPEN_IF_NECESSARY, getLangCtx::input, parserCandidate::lang, LANG_AUTO, LANG_IGNORE, NULL, pickLanguageBySelection(), sortAndFilterParserCandidates(), verbose(), and verboseReportCandidate().
Referenced by getPatternLanguage(), and getSpecLanguage().
subparser * getSubparserRunningBaseparser | ( | void | ) |
Definition at line 4860 of file parse.c.
References getFirstSubparser(), getInputLanguage(), LanguageTable, NULL, sSubparser::schedulingBaseparserExplicitly, and sParserObject::slaveControlBlock.
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().
|
static |
Definition at line 1120 of file parse.c.
References sParserObject::def, LanguageTable, NULL, and sParserDefinition::selectLanguage.
Referenced by commonSelector().
void initializeParser | ( | langType | lang | ) |
Definition at line 1850 of file parse.c.
References countParsers(), initializeParserOne(), and LANG_AUTO.
Referenced by createTagsWithFallback1(), getFieldTypeForNameAndLanguage(), getXtagTypeGeneric(), initializeDependencies(), printKinds(), printLanguageRoles(), printParameters(), processForceInitOption(), processLangKindDefinition(), processLangKindRoleDefinition(), processLangKindRoleDefinitionEach(), processLangSpecificExtraOption(), processLangSpecificFieldsOption(), processListExtrasOption(), processListFieldsOption(), and tm_ctags_init().
|
static |
Definition at line 1798 of file parse.c.
References Assert, sParserObject::def, sParserObject::fileKind, sParserDefinition::initialize, sParserObject::initialized, initializeDependencies(), installFieldDefinition(), installKeywordTable(), installTagRegexTable(), installTagXpathTable(), installXtagDefinition(), sParserObject::kindControlBlock, LanguageTable, lazyInitialize(), sKindDefinition::letter, sParserDefinition::name, NULL, sParserObject::slaveControlBlock, and verbose().
Referenced by applyParameter(), initializeParser(), and printLanguageSubparsers().
|
static |
Definition at line 3791 of file parse.c.
References sParserObject::def, sParserDefinition::id, sParserDefinition::initStats, Option, sOptionValues::printTotals, and sParserObject::used.
Referenced by createTagsWithFallback1().
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().
|
static |
Definition at line 1885 of file parse.c.
References allocKindControlBlock(), allocLregexControlBlock(), allocSlaveControlBlock(), sParserObject::def, defaultFileKind, sParserObject::fileKind, hashTablePutItem(), sParserDefinition::id, sParserObject::kindControlBlock, LanguageCount, LanguageHTable, LanguageTable, sParserObject::lregexControlBlock, sParserDefinition::name, sParserObject::slaveControlBlock, and verbose().
Referenced by initializeParsing(), and processLanguageDefineOption().
|
static |
Definition at line 5344 of file parse.c.
References CTST_GatherStats.
Referenced by CTagsSelfTestParser().
|
static |
Definition at line 1768 of file parse.c.
References Assert, sParserObject::def, defineField(), sParserDefinition::fieldCount, sParserDefinition::fieldTable, LanguageCount, LanguageTable, and NULL.
Referenced by initializeParserOne().
|
static |
Definition at line 4362 of file parse.c.
References addKeyword(), Assert, sParserObject::def, keywordTable::id, sParserDefinition::keywordCount, sParserDefinition::keywordTable, LanguageCount, LanguageTable, keywordTable::name, and NULL.
Referenced by initializeParserOne().
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().
|
static |
Definition at line 4329 of file parse.c.
References addTagMultiLineRegex(), addTagRegex(), Assert, sParserObject::def, sTagRegexTable::disabled, sTagRegexTable::flags, sTagRegexTable::kinds, LanguageCount, LanguageTable, sParserObject::lregexControlBlock, sTagRegexTable::mline, sTagRegexTable::name, NULL, sTagRegexTable::regex, sParserDefinition::tagRegexCount, and sParserDefinition::tagRegexTable.
Referenced by initializeParserOne().
|
static |
Definition at line 4379 of file parse.c.
References addTagXpath(), Assert, sTagXpathTableTable::count, sParserObject::def, LanguageCount, LanguageTable, NULL, sTagXpathTableTable::table, sParserDefinition::tagXpathTableCount, sParserDefinition::tagXpathTableTable, and useXpathMethod().
Referenced by initializeParserOne().
|
static |
Definition at line 1783 of file parse.c.
References Assert, sParserObject::def, defineXtag(), LanguageCount, LanguageTable, NULL, sParserDefinition::xtagCount, and sParserDefinition::xtagTable.
Referenced by initializeParserOne().
bool isLanguageEnabled | ( | const langType | language | ) |
Definition at line 211 of file parse.c.
References sParserObject::def, sParserDefinition::enabled, sParserDefinition::kindTable, LanguageTable, sParserDefinition::method, METHOD_REGEX, METHOD_XPATH, and NULL.
Referenced by getFileLanguageForRequest(), getNextSubparser(), parseFileWithMio(), printLanguage(), printLanguageKinds(), scheduleRunningBaseparser(), selectByArrowOfR(), selectByObjectiveCKeywords(), and selectByRexxCommentAndDosbatchLabelPrefix().
bool isLanguageKindEnabled | ( | const langType | language, |
int | kindIndex | ||
) |
Definition at line 2223 of file parse.c.
References sKindDefinition::enabled, and getLanguageKind().
Referenced by isInputLanguageKindEnabled(), isTagWritable(), makeDefineTag(), and makeKindDescriptionsPseudoTags().
bool isLanguageKindRefOnly | ( | const langType | language, |
int | kindIndex | ||
) |
Definition at line 2235 of file parse.c.
References getLanguageKind(), and sKindDefinition::referenceOnly.
Referenced by isTagWritable().
|
static |
Definition at line 165 of file parse.c.
Referenced by determineEmacsModeAtEOF(), and determineEmacsModeAtFirstLine().
bool isLanguageRoleEnabled | ( | const langType | language, |
int | kindIndex, | ||
int | roleIndex | ||
) |
Definition at line 2229 of file parse.c.
References isRoleEnabled(), and LanguageTable.
Referenced by isInputLanguageRoleEnabled(), isTagWritable(), and renderFieldRoles().
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().
bool isParserMarkedNoEmission | ( | void | ) |
Definition at line 4851 of file parse.c.
References sParserObject::dontEmit, getInputLanguage(), and LanguageTable.
Referenced by initTagEntryFull().
|
static |
Definition at line 2005 of file parse.c.
References Assert, sParserObject::def, doNothing(), findRegexTags(), LanguageCount, LanguageTable, sParserDefinition::method, METHOD_REGEX, optlibIsDedicatedSubparser(), optlibRunBaseParser(), and sParserDefinition::parser.
Referenced by initializeParserOne(), and OptlibParser().
|
static |
Definition at line 1862 of file parse.c.
References sParserDependency::data, sParserObject::def, sParserDefinition::dependencies, sParserDefinition::dependencyCount, getNamedLanguage(), sParserDefinition::id, sParserObject::kindControlBlock, LanguageTable, linkDependencyAtInitializeParsing(), sParserObject::slaveControlBlock, sParserDependency::type, and sParserDependency::upperParser.
Referenced by initializeParsing(), and processLanguageDefineOption().
|
static |
Definition at line 4226 of file parse.c.
References enterSubparser(), foreachSubparser, getSubparserLanguage(), LanguageTable, leaveSubparser(), and lregexQueryParserAndSubparsers().
Referenced by hasLanguageMultilineRegexPatterns(), hasLanguageScopeActionInRegex(), and lregexQueryParserAndSubparsers().
|
static |
Definition at line 4615 of file parse.c.
References getLanguageName(), getXtagDescription(), getXtagName(), LANG_IGNORE, name, NULL, makeKindDescriptionPseudoTagData::pdesc, vStringCatSWithEscapingAsPattern(), vStringDelete(), vStringNew(), vStringValue, and writePseudoTag().
Referenced by makeExtraDescriptionsPseudoTags().
Definition at line 4637 of file parse.c.
References countXtags(), getXtagOwner(), isXtagEnabled(), makeExtraDescriptionPseudoTag(), makeKindDescriptionPseudoTagData::pdesc, and makeKindDescriptionPseudoTagData::written.
Referenced by ptagMakeExtraDescriptions().
|
static |
Definition at line 4577 of file parse.c.
References getFieldDescription(), getFieldName(), getLanguageName(), LANG_IGNORE, name, NULL, makeKindDescriptionPseudoTagData::pdesc, vStringCatSWithEscapingAsPattern(), vStringDelete(), vStringNew(), vStringValue, and writePseudoTag().
Referenced by makeFieldDescriptionsPseudoTags().
Definition at line 4599 of file parse.c.
References countFields(), getFieldOwner(), isFieldEnabled(), makeFieldDescriptionPseudoTag(), makeKindDescriptionPseudoTagData::pdesc, and makeKindDescriptionPseudoTagData::written.
Referenced by ptagMakeFieldDescriptions().
|
static |
Definition at line 4517 of file parse.c.
References sKindDefinition::description, makeKindDescriptionPseudoTagData::langName, sKindDefinition::name, name, makeKindDescriptionPseudoTagData::pdesc, vStringCatS(), vStringCatSWithEscapingAsPattern(), vStringDelete(), vStringNew(), vStringPut(), vStringValue, writePseudoTag(), and makeKindDescriptionPseudoTagData::written.
Referenced by makeKindDescriptionsPseudoTags().
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().
int makeSimplePlaceholder | ( | const vString *const | name | ) |
Definition at line 206 of file parse.c.
References makePlaceholder(), name, and vStringValue.
int makeSimpleRefTag | ( | const vString *const | name, |
const int | kindIndex, | ||
int | roleIndex | ||
) |
Definition at line 188 of file parse.c.
References Assert, CORK_NIL, countInputLanguageRoles(), initRefTagEntry(), makeTagEntry(), name, NULL, vStringLength, and vStringValue.
Referenced by makeSimpleTag().
int makeSimpleTag | ( | const vString *const | name, |
const int | kindIndex | ||
) |
Definition at line 182 of file parse.c.
References makeSimpleRefTag(), name, and ROLE_DEFINITION_INDEX.
Referenced by add_tag(), createTag(), extract_dim(), extract_name(), findConfTags(), findDiffTags(), findHxTags(), findMatlabTags(), findNsisTags(), findPerlTags(), findShTags(), findTag(), makeAsmTag(), makeTclTag(), match_colon_label(), match_keyword(), newMacro(), newTarget(), parseImports(), parseModuleTag(), parseSimpleTag(), readPreProc(), readTag(), and tagNameList().
|
static |
Definition at line 3389 of file parse.c.
References colprintLineAppendColumnCString(), colprintLineAppendColumnVString(), colprintTableGetNewLine(), count, sParserObject::currentExtensions, sParserObject::currentPatterns, sParserObject::def, line, LMAP_EXTENSION, LMAP_PATTERN, sParserDefinition::name, stringListCount(), and stringListItem().
Referenced by printLanguageMaps().
|
static |
Definition at line 3374 of file parse.c.
References AssertNotReached, colprintTableNew(), LMAP_ALL, LMAP_EXTENSION, LMAP_PATTERN, and NULL.
Referenced by printLanguageMaps().
Definition at line 4191 of file parse.c.
References matchLanguageMultilineRegexCommon(), and matchMultilineRegex().
Referenced by iFileGetLine().
|
static |
Definition at line 4175 of file parse.c.
References enterSubparser(), foreachSubparser, getSubparserLanguage(), LanguageTable, leaveSubparser(), and matchLanguageMultilineRegexCommon().
Referenced by matchLanguageMultilineRegex(), matchLanguageMultilineRegexCommon(), and matchLanguageMultitableRegex().
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().
|
static |
Definition at line 692 of file parse.c.
References count, getNameOrAliasesLanguageAndSpec(), LANG_AUTO, LANG_IGNORE, LanguageCount, NULL, parserCandidateNew(), and SPEC_NONE.
Referenced by getSpecLanguage().
|
static |
Definition at line 716 of file parse.c.
References count, getPatternLanguageAndSpec(), LANG_AUTO, LANG_IGNORE, LanguageCount, parserCandidateNew(), and SPEC_NONE.
Referenced by getPatternLanguage().
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().
|
static |
Definition at line 2104 of file parse.c.
References sParserDependency::data, sParserObject::def, sParserDefinition::dependencies, sParserDefinition::dependencyCount, eFree(), LanguageTable, NULL, and sParserDependency::upperParser.
Referenced by OptlibParser().
|
static |
Definition at line 1998 of file parse.c.
References sParserDependency::data, sParserDefinition::dependencies, DEPTYPE_SUBPARSER, SUBPARSER_SUB_RUNS_BASE, and sParserDependency::type.
Referenced by lazyInitialize().
|
static |
Definition at line 2121 of file parse.c.
References preLangDefFlagData::base, sParserDependency::data, sParserDefinition::dependencies, sParserDefinition::dependencyCount, DEPTYPE_SUBPARSER, preLangDefFlagData::direction, sSubparser::direction, eStrdup(), sParserDefinition::finalize, sParserDefinition::initialize, lazyInitialize(), sParserDefinition::method, METHOD_NOT_CRAFTED, name, optlibFreeDep(), parserNew(), sParserDependency::type, sParserDependency::upperParser, and xCalloc.
Referenced by processLanguageDefineOption().
|
static |
Definition at line 1993 of file parse.c.
References scheduleRunningBaseparser().
Referenced by lazyInitialize().
|
static |
Definition at line 2685 of file parse.c.
References error(), FATAL, KIND_FILE_DEFAULT_LETTER, KIND_FILE_DEFAULT_NAME, KIND_WILDCARD_LETTER, langKindDefinitionStruct::option, langKindDefinitionStruct::parameter, and parameterEnablingAllOrFileKind().
Referenced by parameterEnablingAllOrFileKind(), and processKindsOption().
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().
|
static |
Definition at line 4084 of file parse.c.
References createTagsWithFallback(), finiParserTrashBox(), getSourceFileTagPath(), initParserTrashBox(), setupAnon(), setupWriter(), teardownAnon(), and teardownWriter().
Referenced by parseFileWithMio(), and parseRawBuffer().
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().
|
static |
Definition at line 676 of file parse.c.
References parserCandidate::lang, LANG_IGNORE, LanguageCount, NULL, parserCandidate::spec, SPEC_NONE, parserCandidate::specType, and xMalloc.
Referenced by nominateLanguageCandidates(), and nominateLanguageCandidatesForPattern().
|
static |
Definition at line 3742 of file parse.c.
References CORK_QUEUE, foreachSubparser, getSubparserLanguage(), hasLanguageScopeActionInRegex(), sParserDefinition::id, LanguageTable, parserCorkFlags(), popLanguage(), pushLanguage(), sParserDefinition::requestAutomaticFQTag, and sParserDefinition::useCork.
Referenced by createTagsWithFallback1(), and parserCorkFlags().
parserDefinition * parserNew | ( | const char * | name | ) |
Definition at line 237 of file parse.c.
References sParserDefinition::enabled, eStrdup(), sParserDefinition::name, name, and xCalloc.
Referenced by AbaqusParser(), AbcParser(), AsciidocParser(), AsmParser(), BasicParser(), BibtexParser(), ConfParser(), CParser(), CppParser(), CsharpParser(), CssParser(), CTagsParser(), CTagsSelfTestParser(), DiffParser(), DocBookParser(), DParser(), ErlangParser(), F77Parser(), FallbackParser(), FeriteParser(), FlexParser(), FortranParser(), GLSLParser(), GoParser(), HaskellParser(), HaxeParser(), HtmlParser(), JavaParser(), JavaScriptParser(), JsonParser(), JuliaParser(), LiterateHaskellParser(), LuaParser(), MakefileParser(), MarkdownParser(), MatLabParser(), NsisParser(), ObjcParser(), OptlibParser(), PascalParser(), PerlParser(), PhpParser(), PowerShellParser(), PythonParser(), RParser(), RstParser(), RubyParser(), RustParser(), ShParser(), SqlParser(), TclParser(), TexParser(), Txt2tagsParser(), ValaParser(), VerilogParser(), VhdlParser(), and ZephirParser().
|
static |
Definition at line 1165 of file parse.c.
References eFree(), getNamedLanguage(), LANG_IGNORE, verbose(), and xMalloc.
Referenced by getSpecLanguageCommon().
|
static |
Definition at line 2401 of file parse.c.
References sKindDefinition::referenceOnly.
|
static |
Definition at line 2078 of file parse.c.
References preLangDefFlagData::autoFQTag.
|
static |
Definition at line 2038 of file parse.c.
References preLangDefFlagData::base, error(), eStrdup(), getNamedLanguage(), LANG_IGNORE, and WARNING.
|
static |
Definition at line 2064 of file parse.c.
References AssertNotReached, preLangDefFlagData::direction, LANGDEF_FLAG_BIDIR, LANGDEF_FLAG_DEDICATED, LANGDEF_FLAG_SHARED, SUBPARSER_BASE_RUNS_SUB, SUBPARSER_BI_DIRECTION, and SUBPARSER_SUB_RUNS_BASE.
|
static |
Definition at line 3948 of file parse.c.
References getLanguageName(), LANG_IGNORE, Option, sOptionValues::printLanguage, and RSV_NONE.
Referenced by parseFileWithMio().
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().
|
static |
Definition at line 3175 of file parse.c.
References Assert, countKinds(), getKind(), indent, initializeParser(), kindColprintAddLanguageLines(), sParserObject::kindControlBlock, LanguageCount, LanguageTable, and printKind().
Referenced by printLanguageKinds().
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().
|
static |
Definition at line 3535 of file parse.c.
References Assert, sParserDefinition::id, sParserDefinition::invisible, isLanguageEnabled(), sParserDefinition::kindTable, LanguageCount, sParserDefinition::method, METHOD_REGEX, sParserDefinition::name, and NULL.
Referenced by printLanguageList().
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().
|
static |
Definition at line 1538 of file parse.c.
References Assert, sParserObject::currentExtensions, sParserObject::currentPatterns, LanguageCount, LanguageTable, NULL, stringListCount(), stringListItem(), and vStringValue.
Referenced by installLanguageMapDefault().
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 * | kindspecs, | ||
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().
|
static |
Definition at line 3356 of file parse.c.
References sParserObject::currentExtensions, sParserObject::currentPatterns, sParserObject::def, LanguageTable, LMAP_EXTENSION, LMAP_PATTERN, sParserDefinition::name, NULL, stringListCount(), stringListItem(), and vStringValue.
Referenced by printLanguageMaps().
|
static |
Definition at line 3228 of file parse.c.
References Assert, sParserObject::def, initializeParser(), LanguageCount, LanguageTable, NULL, paramColprintAddParameter(), sParserDefinition::parameterHandlerCount, and sParserDefinition::parameterHandlerTable.
Referenced by printLanguageParameters().
void printParserStatisticsIfUsed | ( | langType | language | ) |
Definition at line 3798 of file parse.c.
References sParserObject::def, getLanguageName(), LanguageTable, printLanguageMultitableStatistics(), sParserDefinition::printStats, and sParserObject::used.
Referenced by batchMakeTags().
|
static |
Definition at line 5349 of file parse.c.
References CTST_num_handled_char.
Referenced by CTagsSelfTestParser().
bool processAliasOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 3314 of file parse.c.
References Assert, clearLanguageAliases(), error(), getLanguageComponentInOption(), getLanguageName(), installLanguageAliasesDefaults(), LANG_IGNORE, LanguageCount, processLangAliasOption(), RSV_LANG_ALL, RSV_LANGMAP_DEFAULT, verbose(), and WARNING.
Referenced by processLongOption().
bool processExtradefOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 3622 of file parse.c.
References getLanguageComponentInOption(), LANG_IGNORE, and processLangDefineExtra().
Referenced by processLongOption().
bool processFielddefOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 3693 of file parse.c.
References getLanguageComponentInOption(), LANG_IGNORE, and processLangDefineField().
Referenced by processLongOption().
bool processKinddefOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 2640 of file parse.c.
References getLanguageComponentInOption(), LANG_IGNORE, and processLangDefineKind().
Referenced by processLongOption().
bool processKindsOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 2728 of file parse.c.
References eFree(), error(), eStrndup(), FATAL, foreachLanguage(), getNamedLanguage(), LANG_IGNORE, NULL, langKindDefinitionStruct::option, langKindDefinitionStruct::parameter, parameterEnablingAllOrFileKind(), PREFIX, PREFIX_LEN, processLangKindDefinition(), processLangKindDefinitionEach(), RSV_LANG_ALL, and WARNING.
Referenced by processLongOption().
|
static |
Definition at line 3268 of file parse.c.
References addLanguageAlias(), Assert, clearLanguageAliases(), sParserObject::currentAliases, sParserObject::def, installLanguageAliasesDefault(), LanguageCount, LanguageTable, sParserDefinition::name, RSV_LANGMAP_DEFAULT, stringListDeleteItemExtension(), and verbose().
Referenced by processAliasOption().
|
static |
Definition at line 3571 of file parse.c.
References Assert, DEFAULT_TRASH_BOX, defineXtag(), sXtagDefinition::description, sXtagDefinition::enabled, error(), eStrndup(), extractDescriptionAndFlags(), FATAL, flagsEval(), sXtagDefinition::isEnabled, LanguageCount, sXtagDefinition::letter, LONG_FLAGS_OPEN, sXtagDefinition::name, NUL_XTAG_LETTER, NULL, xCalloc, and xtagDefinitionDestroy().
Referenced by processExtradefOption().
|
static |
Definition at line 3640 of file parse.c.
References Assert, sFieldDefinition::dataType, DEFAULT_TRASH_BOX, defineField(), sFieldDefinition::description, sFieldDefinition::enabled, error(), eStrndup(), extractDescriptionAndFlags(), FATAL, FIELD_UNKNOWN, fieldDefinitionDestroy(), FIELDTYPE_STRING, flagsEval(), sFieldDefinition::ftype, sFieldDefinition::isValueAvailable, LanguageCount, sFieldDefinition::letter, LONG_FLAGS_OPEN, sFieldDefinition::name, NUL_FIELD_LETTER, NULL, and xCalloc.
Referenced by processFielddefOption().
|
static |
Definition at line 2413 of file parse.c.
References ARRAY_SIZE, Assert, defineKind(), sKindDefinition::description, eFree(), sKindDefinition::enabled, error(), eStrndup(), extractDescriptionAndFlags(), FATAL, flagsEval(), freeKdef(), getKindForLetter(), getKindForName(), KIND_FILE_DEFAULT_LETTER, KIND_FILE_DEFAULT_NAME, sParserObject::kindControlBlock, LanguageCount, LanguageTable, sKindDefinition::letter, LONG_FLAGS_OPEN, sKindDefinition::name, name, PreKindDefFlagDef, WARNING, and xCalloc.
Referenced by processKinddefOption().
|
static |
Definition at line 2536 of file parse.c.
References Assert, defineRole(), sRoleDefinition::description, eFree(), sRoleDefinition::enabled, error(), eStrndup(), extractDescriptionAndFlags(), FATAL, flagsEval(), freeRdef(), getKindForLetter(), getKindForName(), getRoleForName(), sKindDefinition::id, KIND_FILE_DEFAULT_LETTER, KIND_FILE_DEFAULT_NAME, sParserObject::kindControlBlock, LanguageCount, LanguageTable, LONG_FLAGS_OPEN, sRoleDefinition::name, name, NULL, WARNING, and xCalloc.
Referenced by processRoledefOption().
|
static |
Definition at line 542 of file parse.c.
References Assert, defineScopeSeparator(), error(), FATAL, getKindForLetter(), sKindDefinition::id, KIND_FILE_DEFAULT_LETTER, KIND_FILE_DEFAULT_NAME, KIND_FILE_INDEX, KIND_GHOST_INDEX, KIND_WILDCARD_INDEX, KIND_WILDCARD_LETTER, sParserObject::kindControlBlock, LanguageCount, LanguageTable, and NULL.
Referenced by processScopesepOption().
|
static |
Definition at line 2286 of file parse.c.
References Assert, enableLanguageKindForLetter(), enableLanguageKindForName(), error(), FATAL, initializeParser(), LanguageCount, resetLanguageKinds(), vStringClear, vStringNewOrClearWithAutoRelease(), vStringPut(), vStringValue, and WARNING.
Referenced by processKindsOption(), and processLangKindDefinitionEach().
|
static |
Definition at line 2678 of file parse.c.
References langKindDefinitionStruct::option, langKindDefinitionStruct::parameter, and processLangKindDefinition().
Referenced by processKindsOption().
|
static |
Definition at line 2899 of file parse.c.
References Assert, eFree(), enableRole(), error(), eStrndup(), FATAL, getLanguageKind(), getLanguageName(), getLanguageRoleForName(), initializeParser(), KIND_GHOST_INDEX, LanguageCount, resetKindRoles(), and WARNING.
Referenced by processLangKindRoleDefinitionEach(), and processRolesOption().
|
static |
Definition at line 2964 of file parse.c.
References foreachKind(), initializeParser(), KIND_GHOST_INDEX, langKindRoleDefinitionStruct::kindIndex, langKindRoleDefinitionStruct::option, langKindRoleDefinitionStruct::parameter, processLangKindRoleDefinition(), and resetKindRolesAsCallback().
Referenced by processRolesOption().
void processLanguageDefineOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 2146 of file parse.c.
References ARRAY_SIZE, preLangDefFlagData::autoFQTag, preLangDefFlagData::base, sParserObject::currentExtensions, sParserObject::currentPatterns, preLangDefFlagData::direction, eFree(), error(), eStrdup(), eStrndup(), FATAL, flagsEval(), getNamedLanguage(), sParserDefinition::id, initializeParsingCommon(), LANG_IGNORE, LanguageCount, LanguageTable, linkDependenciesAtInitializeParsing(), LONG_FLAGS_OPEN, name, NULL, OptlibParser(), PreLangDefFlagDef, sParserObject::pretendedAsLanguage, sParserObject::pretendingAsLanguage, sParserDefinition::requestAutomaticFQTag, RSV_LANG_ALL, stringListNew(), SUBPARSER_BASE_RUNS_SUB, SUBPARSER_UNKNOWN_DIRECTION, WARNING, and xRealloc.
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 processPretendOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 4953 of file parse.c.
References enableLanguage(), error(), FATAL, getLanguageComponentInOptionFull(), getLanguageNameFull(), getNamedLanguageFull(), LANG_IGNORE, LanguageTable, NULL, sParserObject::pretendedAsLanguage, sParserObject::pretendingAsLanguage, pretendOptionPrefix, and verbose().
Referenced by processLongOption().
bool processRoledefOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 2651 of file parse.c.
References Assert, error(), FATAL, getLanguageComponentInOption(), getLanguageName(), LANG_IGNORE, LanguageCount, PREFIX, PREFIX_LEN, and processLangDefineRole().
Referenced by processLongOption().
bool processRolesOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 2979 of file parse.c.
References eFree(), error(), eStrndup(), FATAL, foreachKind(), foreachLanguage(), getKindIndexForLetter(), getKindIndexForName(), getNamedLanguage(), KIND_FILE_DEFAULT_LETTER, KIND_FILE_DEFAULT_NAME, KIND_GHOST_INDEX, sParserObject::kindControlBlock, langKindRoleDefinitionStruct::kindIndex, LANG_IGNORE, LanguageTable, NULL, langKindRoleDefinitionStruct::option, langKindRoleDefinitionStruct::parameter, PREFIX, PREFIX_LEN, processLangKindRoleDefinition(), processLangKindRoleDefinitionEach(), resetKindRolesAsCallback(), RSV_LANG_ALL, and WARNING.
Referenced by processLongOption().
bool processScopesepOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 665 of file parse.c.
References getLanguageComponentInOption(), LANG_IGNORE, and processLangDefineScopesep().
Referenced by processLongOption().
bool processTabledefOption | ( | const char *const | option, |
const char *const | parameter | ||
) |
Definition at line 4296 of file parse.c.
References addRegexTable(), error(), FATAL, getLanguageComponentInOption(), LANG_IGNORE, LanguageTable, and NULL.
Referenced by processLongOption().
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().
|
static |
Definition at line 1692 of file parse.c.
References getLanguageName(), LanguageTable, NULL, stringListDeleteItemExtension(), and verbose().
Referenced by removeLanguageExtensionMap().
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().
|
static |
Definition at line 1652 of file parse.c.
References getLanguageName(), LanguageTable, NULL, stringListDeleteItemExtension(), and verbose().
Referenced by removeLanguagePatternMap().
|
static |
Definition at line 2881 of file parse.c.
References Assert, countLanguageRoles(), enableRole(), getLanguageRole(), and LanguageCount.
Referenced by processLangKindRoleDefinition(), and resetKindRolesAsCallback().
|
static |
Definition at line 2893 of file parse.c.
References resetKindRoles().
Referenced by processLangKindRoleDefinitionEach(), and processRolesOption().
|
static |
Definition at line 2241 of file parse.c.
References Assert, countKinds(), enableKind(), getKind(), sParserObject::kindControlBlock, LanguageCount, and LanguageTable.
Referenced by processLangKindDefinition().
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 scheduleRunningBaseparser | ( | int | dependencyIndex | ) |
Definition at line 4795 of file parse.c.
References sParserDependency::data, sParserObject::def, sParserDefinition::dependencies, sParserDefinition::dependencyCount, DEPTYPE_SUBPARSER, sParserObject::dontEmit, enableLanguage(), foreachSubparser, getInputLanguage(), getLanguageName(), getNamedLanguage(), getSubparserLanguage(), isLanguageEnabled(), LanguageTable, makePromise(), sParserDefinition::name, NULL, popLanguage(), pushLanguage(), RUN_DEFAULT_SUBPARSERS, sParserObject::slaveControlBlock, THIN_STREAM_SPEC, sParserDependency::type, sParserDependency::upperParser, useDefaultSubparsers(), useSpecifiedSubparser(), and verbose().
Referenced by optlibRunBaseParser().
const char * scopeSeparatorFor | ( | langType | language, |
int | kindIndex, | ||
int | parentKindIndex | ||
) |
Definition at line 531 of file parse.c.
References Assert, getScopeSeparator(), sParserObject::kindControlBlock, LanguageCount, LanguageTable, NULL, and sScopeSeparator::separator.
Referenced by getFullQualifiedScopeNameFromCorkQueue(), and makeQualifiedTagEntry().
|
static |
Definition at line 4663 of file parse.c.
References NULL, parsersUsedInCurrentInput, and ptrArrayNew().
Referenced by parseMio().
|
static |
Definition at line 3763 of file parse.c.
References enterSubparser(), foreachSubparser, getSubparserLanguage(), LanguageTable, leaveSubparser(), setupLanguageSubparsersInUse(), and setupSubparsersInUse().
Referenced by createTagsWithFallback1(), and setupLanguageSubparsersInUse().
|
static |
Definition at line 1215 of file parse.c.
References sortParserCandidatesBySpecType(), and parserCandidate::specType.
Referenced by getSpecLanguageCommon().
|
static |
Definition at line 1196 of file parse.c.
References compareParsersByName(), sParserObject::def, parserCandidate::lang, LanguageTable, and parserCandidate::specType.
Referenced by sortAndFilterParserCandidates().
|
static |
Definition at line 1340 of file parse.c.
References fallback, getSpecLanguage(), getLangCtx::input, LANG_IGNORE, mio_rewind(), NULL, taster::taste, verbose(), vStringDelete(), and vStringValue.
Referenced by getFileLanguageForRequestInternal().
|
static |
Definition at line 4668 of file parse.c.
References parsersUsedInCurrentInput, and ptrArrayDelete().
Referenced by parseMio().
Definition at line 3777 of file parse.c.
References enterSubparser(), foreachSubparser, getSubparserLanguage(), LanguageTable, leaveSubparser(), teardownLanguageSubparsersInUse(), and teardownSubparsersInUse().
Referenced by createTagsWithFallback1(), and teardownLanguageSubparsersInUse().
|
static |
Definition at line 4396 of file parse.c.
References Assert, sTagXpathTableTable::count, sParserObject::def, LanguageCount, LanguageTable, NULL, removeTagXpath(), sTagXpathTableTable::table, sParserDefinition::tagXpathTableCount, and sParserDefinition::tagXpathTableTable.
Referenced by freeParserResources().
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().
|
static |
Definition at line 4320 of file parse.c.
References Assert, sParserObject::def, LanguageCount, LanguageTable, sParserDefinition::method, and METHOD_XPATH.
Referenced by installTagXpathTable().
|
static |
Definition at line 1238 of file parse.c.
References LanguageTable, parserCandidate::spec, parserCandidate::specType, specTypeName, and verbose().
Referenced by getSpecLanguageCommon().
|
static |
Definition at line 3564 of file parse.c.
References sXtagDefinition::description, eFree(), and sXtagDefinition::name.
Referenced by processLangDefineExtra().
|
static |
Definition at line 128 of file parse.c.
Referenced by initializeParsing().
|
static |
Definition at line 5036 of file parse.c.
Referenced by CTagsParser().
|
static |
|
static |
|
static |
|
static |
Definition at line 5059 of file parse.c.
Referenced by createCTSTTags(), and initStatsCTST().
|
static |
Definition at line 5133 of file parse.c.
Referenced by createCTSTTags(), and CTagsSelfTestParser().
|
static |
Definition at line 5060 of file parse.c.
Referenced by createCTSTTags(), and printStatsCTST().
|
static |
|
static |
|
static |
Definition at line 5164 of file parse.c.
Referenced by createCTSTTags(), and CTagsSelfTestParser().
|
static |
Definition at line 154 of file parse.c.
Referenced by enableDefaultFileKind(), and initializeParsingCommon().
|
static |
Referenced by getFileLanguageForRequestInternal().
|
static |
Definition at line 295 of file parse.c.
Referenced by getLanguageKind(), getLanguageKindForLetter(), and getLanguageKindForName().
|
static |
Definition at line 152 of file parse.c.
Referenced by addLanguageAlias(), addLanguageExtensionMap(), addLanguagePatternMap(), applyParameter(), clearLanguageAliases(), clearLanguageMap(), countParsers(), createTagsWithFallback(), doesLanguageAllowNullTag(), doesLanguageRequestAutomaticFQTag(), doesParserRequireMemoryStream(), enableLanguage(), enableLanguages(), foreachLanguage(), freeParserResources(), getLanguageKind(), getLanguageKindForLetter(), getLanguageKindForName(), getLanguageNameFull(), getNamedLanguageFull(), getNameOrAliasesLanguageAndSpec(), getPatternLanguageAndSpec(), getXpathFileSpec(), getXpathFileSpecCount(), getXpathTableTable(), initializeParsingCommon(), installFieldDefinition(), installKeywordTable(), installLanguageAliasesDefault(), installLanguageAliasesDefaults(), installLanguageMapDefault(), installLanguageMapDefaults(), installTagRegexTable(), installTagXpathTable(), installXtagDefinition(), lazyInitialize(), makeKindDescriptionsPseudoTags(), makeKindSeparatorsPseudoTags(), nominateLanguageCandidates(), nominateLanguageCandidatesForPattern(), parserCandidateNew(), printKinds(), printLanguage(), printLanguageAliases(), printLanguageKinds(), printLanguageList(), printLanguageMap(), printLanguageMaps(), printLanguageParameters(), printLanguageRoles(), printLanguageSubparsers(), printParameters(), processAliasOption(), processLangAliasOption(), processLangDefineExtra(), processLangDefineField(), processLangDefineKind(), processLangDefineRole(), processLangDefineScopesep(), processLangKindDefinition(), processLangKindRoleDefinition(), processLanguageDefineOption(), processRoledefOption(), removeLanguageExtensionMap(), removeLanguagePatternMap(), resetKindRoles(), resetLanguageKinds(), scopeSeparatorFor(), uninstallTagXpathTable(), useRegexMethod(), and useXpathMethod().
Definition at line 153 of file parse.c.
Referenced by getNamedLanguageFull(), initializeParsing(), and initializeParsingCommon().
|
static |
Definition at line 151 of file parse.c.
Referenced by addLanguageAlias(), addLanguageCallbackRegex(), addLanguageExtensionMap(), addLanguagePatternMap(), addLanguageRegexTable(), addLanguageTagMultiTableRegex(), addParserPseudoTags(), anonGenerate(), applyParameter(), clearLanguageAliases(), clearLanguageMap(), commonSelector(), countLanguageKinds(), countLanguageRoles(), createTagsForFile(), createTagsWithFallback1(), defineLanguageKind(), doesLanguageAllowNullTag(), doesLanguageRequestAutomaticFQTag(), doesParserRequireMemoryStream(), enableLanguage(), foreachLanguage(), freeParserResources(), getFileLanguageForRequestInternal(), getLanguageKind(), getLanguageKindForLetter(), getLanguageKindForName(), getLanguageNameFull(), getLanguageRole(), getLanguageRoleForName(), getNamedLanguageFull(), getNameOrAliasesLanguageAndSpec(), getNextSlaveParser(), getNextSubparser(), getPatternLanguageAndSpec(), getSubparserRunningBaseparser(), getXpathFileSpec(), getXpathFileSpecCount(), getXpathTableTable(), hasTheSameSelector(), initializeParserOne(), initializeParsing(), initializeParsingCommon(), installFieldDefinition(), installKeywordTable(), installLanguageAliasesDefault(), installLanguageMapDefault(), installTagRegexTable(), installTagXpathTable(), installXtagDefinition(), isLanguageEnabled(), isLanguageRoleEnabled(), isLanguageVisible(), isParserMarkedNoEmission(), lazyInitialize(), linkDependenciesAtInitializeParsing(), lregexQueryParserAndSubparsers(), makeKindDescriptionsPseudoTags(), makeKindSeparatorsPseudoTags(), matchLanguageMultilineRegexCommon(), matchLanguageRegex(), notifyLanguageRegexInputEnd(), notifyLanguageRegexInputStart(), optlibFreeDep(), parserCorkFlags(), printKinds(), printLanguageAliases(), printLanguageKinds(), printLanguageList(), printLanguageMap(), printLanguageMaps(), printLanguageMultitableStatistics(), printLanguageParameters(), printLanguageRoles(), printLanguageSubparsers(), printMaps(), printParameters(), printParserStatisticsIfUsed(), processLangAliasOption(), processLangDefineKind(), processLangDefineRole(), processLangDefineScopesep(), processLanguageDefineOption(), processLanguageMultitableExtendingOption(), processLanguageRegexOption(), processPretendOption(), processRolesOption(), processTabledefOption(), removeLanguageExtensionMap1(), removeLanguagePatternMap1(), resetLanguageKinds(), scheduleRunningBaseparser(), scopeSeparatorFor(), setupLanguageSubparsersInUse(), sortParserCandidatesBySpecType(), teardownLanguageSubparsersInUse(), uninstallTagXpathTable(), useRegexMethod(), useXpathMethod(), and verboseReportCandidate().
|
static |
Definition at line 4661 of file parse.c.
Referenced by anonResetMaybe(), setupAnon(), and teardownAnon().
|
static |
Definition at line 2408 of file parse.c.
Referenced by printKinddefFlags(), and processLangDefineKind().
|
static |
Definition at line 2086 of file parse.c.
Referenced by printLangdefFlags(), and processLanguageDefineOption().
const char* specTypeName[] |
Definition at line 65 of file parse.c.
Referenced by verboseReportCandidate().