9#ifndef CTAGS_MAIN_PARSE_PRIVATE_H
10#define CTAGS_MAIN_PARSE_PRIVATE_H
21#ifdef EXTERNAL_PARSER_LIST_FILE
22#include EXTERNAL_PARSER_LIST_FILE
28#define LANG_FALLBACK (1)
48#ifdef EXTERNAL_PARSER_LIST
72 const char *roleName);
91 bool exclusiveInAllLanguages);
94 bool exclusiveInAllLanguages);
102 bool withListHeader,
bool machinable, FILE *fp);
111 bool withListHeader,
bool machinable, FILE *fp);
113 bool withListHeader,
bool machinable, FILE *fp);
115 bool withListHeader,
bool machinable, FILE *fp);
118 bool withListHeader,
bool machinable, FILE *fp);
120 bool withListHeader,
bool machinable, FILE *fp);
124extern bool parseFile (
const char *
const fileName);
126extern bool parseRawBuffer(
const char *fileName,
unsigned char *buffer,
127 size_t bufferSize,
const langType language,
void *clientData);
130 unsigned long startLine,
long startCharOffset,
131 unsigned long endLine,
long endCharOffset,
132 unsigned long sourceLineOffset,
136extern void freeEncodingResources (
void);
148extern void printRegexFlags (
bool withListHeader,
bool machinable, FILE *fp);
void(* freeKindDefFunc)(kindDefinition *)
parserDefinition *() parserDefinitionFunc(void)
void printMultitableRegexFlags(bool withListHeader, bool machinable, FILE *fp)
void printLanguageAliases(const langType language, bool withListHeader, bool machinable, FILE *fp)
langType getNamedLanguageFull(const char *const name, size_t len, bool noPretending)
void installLanguageAliasesDefaults(void)
void printLanguageMultitableStatistics(langType language)
void processLanguageMultitableExtendingOption(langType language, const char *const parameter)
unsigned int countParsers(void)
kindDefinition * getLanguageKind(const langType language, int kindIndex)
void printLanguageMaps(const langType language, langmapType type, bool withListHeader, bool machinable, FILE *fp)
void freeRegexResources(void)
bool removeLanguageExtensionMap(const langType language, const char *const extension)
bool hasLanguageScopeActionInRegex(const langType language)
void installLanguageMapDefault(const langType language)
void initializeParsing(void)
bool makeFieldDescriptionsPseudoTags(const langType language, const ptagDesc *pdesc)
bool doesLanguageRequestAutomaticFQTag(const langType language)
void printLangdefFlags(bool withListHeader, bool machinable, FILE *fp)
void matchLanguageRegex(const langType language, const vString *const line)
void printLanguageSubparsers(const langType language, bool withListHeader, bool machinable, FILE *fp)
void enableLanguages(const bool state)
void printLanguageRoles(const langType language, const char *letters, bool withListHeader, bool machinable, FILE *fp)
void enableLanguage(const langType language, const bool state)
bool makeKindDescriptionsPseudoTags(const langType language, const ptagDesc *pdesc)
bool isLanguageVisible(const langType language)
void printLanguageParameters(const langType language, bool withListHeader, bool machinable, FILE *fp)
void printRegexFlags(bool withListHeader, bool machinable, FILE *fp)
unsigned int getXpathFileSpecCount(const langType language)
void printKinddefFlags(bool withListHeader, bool machinable, FILE *fp)
void notifyLanguageRegexInputStart(langType language)
bool parseFile(const char *const fileName)
bool doesLanguageAllowNullTag(const langType language)
void printLanguageKinds(const langType language, bool allKindFields, bool withListHeader, bool machinable, FILE *fp)
bool hasLanguageMultilineRegexPatterns(const langType language)
roleDefinition * getLanguageRole(const langType language, int kindIndex, int roleIndex)
void useRegexMethod(const langType language)
bool makeKindSeparatorsPseudoTags(const langType language, const ptagDesc *pdesc)
roleDefinition * getLanguageRoleForName(const langType language, int kindIndex, const char *roleName)
bool isLanguageKindRefOnly(const langType language, int kindIndex)
void addLanguageAlias(const langType language, const char *alias)
void printLanguageList(void)
void addLanguageExtensionMap(const langType language, const char *extension, bool exclusiveInAllLanguages)
void enableDefaultFileKind(bool state)
bool parseRawBuffer(const char *fileName, unsigned char *buffer, size_t bufferSize, const langType language, void *clientData)
bool removeLanguagePatternMap(const langType language, const char *const pattern)
void printMultilineRegexFlags(bool withListHeader, bool machinable, FILE *fp)
void clearLanguageMap(const langType language)
void matchLanguageMultitableRegex(const langType language, const vString *const allLines)
bool doesParserRequireMemoryStream(const langType language)
bool runParserInNarrowedInputStream(const langType language, unsigned long startLine, long startCharOffset, unsigned long endLine, long endCharOffset, unsigned long sourceLineOffset, int promise)
void matchLanguageMultilineRegex(const langType language, const vString *const allLines)
bool makeExtraDescriptionsPseudoTags(const langType language, const ptagDesc *pdesc)
void addLanguagePatternMap(const langType language, const char *ptrn, bool exclusiveInAllLanguages)
void printParserStatisticsIfUsed(langType lang)
const tagXpathTableTable * getXpathTableTable(const langType language, unsigned int nth)
void installLanguageAliasesDefault(const langType language)
xpathFileSpec * getXpathFileSpec(const langType language, unsigned int nth)
bool parseFileWithMio(const char *const fileName, MIO *mio, void *clientData)
void notifyLanguageRegexInputEnd(langType language)
void clearLanguageAliases(const langType language)
void freeParserResources(void)
void installLanguageMapDefaults(void)
bool processLanguageRegexOption(langType language, enum regexParserType regptype, const char *const parameter)
unsigned int countLanguageRoles(const langType language, int kindIndex)
kindDefinition * getLanguageKindForName(const langType language, const char *kindName)
unsigned int countLanguageKinds(const langType language)
int defineLanguageKind(const langType language, kindDefinition *def, freeKindDefFunc freeKindDef)
#define EXTERNAL_PARSER_LIST