本文整理汇总了C++中parserNew函数的典型用法代码示例。如果您正苦于以下问题:C++ parserNew函数的具体用法?C++ parserNew怎么用?C++ parserNew使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了parserNew函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HtmlParser
/* Create parser definition structure */
extern parserDefinition* HtmlParser (void)
{
static const char *const extensions [] = { "htm", "html", NULL };
parserDefinition *const def = parserNew ("HTML");
def->extensions = extensions;
def->tagRegexTable = htmlTagRegexTable;
def->tagRegexCount = ARRAY_SIZE (htmlTagRegexTable);
def->method = METHOD_NOT_CRAFTED|METHOD_REGEX;
return def;
}
示例2: AwkParser
extern parserDefinition* AwkParser (void)
{
static const char *const extensions [] = { "awk", "gawk", "mawk", NULL };
parserDefinition* def = parserNew ("Awk");
def->kinds = AwkKinds;
def->kindCount = ARRAY_SIZE (AwkKinds);
def->extensions = extensions;
def->parser = findAwkTags;
return def;
}
示例3: parserNew
parserDefinition *FreeBasicParser (void)
{
static char const *extensions[] = { "bas", "bi", "bb", "pb", NULL };
parserDefinition *def = parserNew ("FreeBasic");
def->kinds = BasicKinds;
def->kindCount = ARRAY_SIZE (BasicKinds);
def->extensions = extensions;
def->parser = findBasicTags;
return def;
}
示例4: VimParser
extern parserDefinition* VimParser (void)
{
static const char *const extensions [] = { "vim", NULL };
parserDefinition* def = parserNew ("Vim");
def->kinds = VimKinds;
def->kindCount = KIND_COUNT (VimKinds);
def->extensions = extensions;
def->parser = findVimTags;
return def;
}
示例5: parserNew
extern parserDefinition *MyrddinParser (void)
{
static const char *const extensions [] = { "myr", NULL };
parserDefinition* const def = parserNew ("Myrddin");
def->extensions = extensions;
def->tagRegexTable = myrddinTagRegexTable;
def->tagRegexCount = ARRAY_SIZE (myrddinTagRegexTable);
def->method = METHOD_NOT_CRAFTED|METHOD_REGEX;
return def;
}
示例6: PhpParser
extern parserDefinition* PhpParser (void)
{
static const char *const extensions [] = { "php", "php3", "phtml", NULL };
parserDefinition* def = parserNew ("PHP");
def->kinds = PhpKinds;
def->kindCount = KIND_COUNT (PhpKinds);
def->extensions = extensions;
def->parser = findPhpTags;
return def;
}
示例7: RubyParser
extern parserDefinition* RubyParser (void)
{
static const char *const extensions [] = { "rb", "ruby", NULL };
parserDefinition* def = parserNew ("Ruby");
def->kinds = RubyKinds;
def->kindCount = KIND_COUNT (RubyKinds);
def->extensions = extensions;
def->parser = findRubyTags;
return def;
}
示例8: AspParser
extern parserDefinition* AspParser (void)
{
static const char *const extensions [] = { "asp", "asa", NULL };
parserDefinition* def = parserNew ("Asp");
def->kinds = AspKinds;
def->kindCount = KIND_COUNT (AspKinds);
def->extensions = extensions;
def->parser = findAspTags;
return def;
}
示例9: YaccParser
extern parserDefinition* YaccParser (void)
{
static const char *const extensions [] = { "y", NULL };
parserDefinition* const def = parserNew ("YACC");
def->extensions = extensions;
def->method = METHOD_NOT_CRAFTED|METHOD_REGEX;
def->tagRegexTable = yaccTagRegexTable;
def->tagRegexCount = ARRAY_SIZE (yaccTagRegexTable);
return def;
}
示例10: AbaqusParser
extern parserDefinition* AbaqusParser (void)
{
static const char *const extensions [] = { "inp", NULL };
parserDefinition * def = parserNew ("Abaqus");
def->kinds = AbaqusKinds;
def->kindCount = ARRAY_SIZE (AbaqusKinds);
def->extensions = extensions;
def->parser = findAbaqusTags;
return def;
}
示例11: LuaParser
extern parserDefinition* LuaParser (void)
{
static const char* const extensions [] = { "lua", NULL };
parserDefinition* def = parserNew ("Lua");
def->kinds = LuaKinds;
def->kindCount = KIND_COUNT (LuaKinds);
def->extensions = extensions;
def->parser = findLuaTags;
return def;
}
示例12: CssParser
/* parser definition */
extern parserDefinition* CssParser (void)
{
static const char *const extensions [] = { "css", NULL };
parserDefinition* def = parserNew ("CSS");
def->kinds = CssKinds;
def->kindCount = ARRAY_SIZE (CssKinds);
def->extensions = extensions;
def->parser = findCssTags;
return def;
}
示例13: PowerShellParser
extern parserDefinition* PowerShellParser (void)
{
static const char *const extensions [] = { "ps1", "psm1", NULL };
parserDefinition* def = parserNew ("PowerShell");
def->kinds = PowerShellKinds;
def->kindCount = ARRAY_SIZE (PowerShellKinds);
def->extensions = extensions;
def->parser = findPowerShellTags;
return def;
}
示例14: WindResParser
/* parser definition */
extern parserDefinition* WindResParser(void)
{
static const char *const extensions [] = { "rc", NULL };
parserDefinition* def = parserNew("WindRes");
def->kinds = ResKinds;
def->kindCount = ARRAY_SIZE(ResKinds);
def->extensions = extensions;
def->parser = findResTags;
return def;
}
示例15: parserNew
extern parserDefinition *ElixirParser (void)
{
static const char *const extensions[] = { "ex", "exs", NULL };
parserDefinition *def = parserNew ("Elixir");
def->kinds = ElixirKinds;
def->kindCount = KIND_COUNT (ElixirKinds);
def->extensions = extensions;
def->parser = findElixirTags;
return def;
}