yacc.c
来自「ultraEdit的Ctag标签工具的实现源代码」· C语言 代码 · 共 41 行
C
41 行
/*
* $Id: yacc.c,v 1.6 2003/02/23 18:23:10 darren Exp $
*
* Copyright (c) 2001-2002, Nick Hibma <n_hibma@van-laarhoven.org>
*
* This source code is released for free distribution under the terms of the
* GNU General Public License.
*
* This module contains functions for generating tags for YACC language files.
*/
/*
* INCLUDE FILES
*/
#include "general.h" /* must always come first */
#include <string.h>
#include "parse.h"
/*
* FUNCTION DEFINITIONS
*/
static void installYaccRegex (const langType language)
{
addTagRegex (language,
"^([A-Za-z][A-Za-z_0-9]+)[ \t]*:", "\\1", "l,label,labels", NULL);
}
extern parserDefinition* YaccParser ()
{
static const char *const extensions [] = { "y", NULL };
parserDefinition* const def = parserNew ("YACC");
def->extensions = extensions;
def->initialize = installYaccRegex;
def->regex = TRUE;
return def;
}
/* vi:set tabstop=8 shiftwidth=4: */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?