亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ecs.c

?? 編譯原理(Flex):生成詞法和語法分析程序的源代碼的程序。
?? C
字號:
/* ecs - equivalence class routines */

/*-
 * Copyright (c) 1990 The Regents of the University of California.
 * All rights reserved.
 *
 * This code is derived from software contributed to Berkeley by
 * Vern Paxson.
 * 
 * The United States Government has rights in this work pursuant
 * to contract no. DE-AC03-76SF00098 between the United States
 * Department of Energy and the University of California.
 *
 * Redistribution and use in source and binary forms are permitted provided
 * that: (1) source distributions retain this entire copyright notice and
 * comment, and (2) distributions including binaries display the following
 * acknowledgement:  ``This product includes software developed by the
 * University of California, Berkeley and its contributors'' in the
 * documentation or other materials provided with the distribution and in
 * all advertising materials mentioning features or use of this software.
 * Neither the name of the University nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

/* $Header: /home/daffy/u0/vern/flex/RCS/ecs.c,v 2.9 93/12/07 10:18:20 vern Exp $ */

#include "flexdef.h"

/* ccl2ecl - convert character classes to set of equivalence classes */

void ccl2ecl()
	{
	int i, ich, newlen, cclp, ccls, cclmec;

	for ( i = 1; i <= lastccl; ++i )
		{
		/* We loop through each character class, and for each character
		 * in the class, add the character's equivalence class to the
		 * new "character" class we are creating.  Thus when we are all
		 * done, character classes will really consist of collections
		 * of equivalence classes
		 */

		newlen = 0;
		cclp = cclmap[i];

		for ( ccls = 0; ccls < ccllen[i]; ++ccls )
			{
			ich = ccltbl[cclp + ccls];
			cclmec = ecgroup[ich];

			if ( cclmec > 0 )
				{
				ccltbl[cclp + newlen] = cclmec;
				++newlen;
				}
			}

		ccllen[i] = newlen;
		}
	}


/* cre8ecs - associate equivalence class numbers with class members
 *
 * fwd is the forward linked-list of equivalence class members.  bck
 * is the backward linked-list, and num is the number of class members.
 *
 * Returned is the number of classes.
 */

int cre8ecs( fwd, bck, num )
int fwd[], bck[], num;
	{
	int i, j, numcl;

	numcl = 0;

	/* Create equivalence class numbers.  From now on, ABS( bck(x) )
	 * is the equivalence class number for object x.  If bck(x)
	 * is positive, then x is the representative of its equivalence
	 * class.
	 */
	for ( i = 1; i <= num; ++i )
		if ( bck[i] == NIL )
			{
			bck[i] = ++numcl;
			for ( j = fwd[i]; j != NIL; j = fwd[j] )
				bck[j] = -numcl;
			}

	return numcl;
	}


/* mkeccl - update equivalence classes based on character class xtions
 *
 * synopsis
 *    Char ccls[];
 *    int lenccl, fwd[llsiz], bck[llsiz], llsiz, NUL_mapping;
 *    void mkeccl( Char ccls[], int lenccl, int fwd[llsiz], int bck[llsiz],
 *			int llsiz, int NUL_mapping );
 *
 * ccls contains the elements of the character class, lenccl is the
 * number of elements in the ccl, fwd is the forward link-list of equivalent
 * characters, bck is the backward link-list, and llsiz size of the link-list.
 *
 * NUL_mapping is the value which NUL (0) should be mapped to.
 */

void mkeccl( ccls, lenccl, fwd, bck, llsiz, NUL_mapping )
Char ccls[];
int lenccl, fwd[], bck[], llsiz, NUL_mapping;
	{
	int cclp, oldec, newec;
	int cclm, i, j;
	static unsigned char cclflags[CSIZE];	/* initialized to all '\0' */

	/* Note that it doesn't matter whether or not the character class is
	 * negated.  The same results will be obtained in either case.
	 */

	cclp = 0;

	while ( cclp < lenccl )
		{
		cclm = ccls[cclp];

		if ( NUL_mapping && cclm == 0 )
			cclm = NUL_mapping;

		oldec = bck[cclm];
		newec = cclm;

		j = cclp + 1;

		for ( i = fwd[cclm]; i != NIL && i <= llsiz; i = fwd[i] )
			{ /* look for the symbol in the character class */
			for ( ; j < lenccl; ++j )
				{
				register int ccl_char;

				if ( NUL_mapping && ccls[j] == 0 )
					ccl_char = NUL_mapping;
				else
					ccl_char = ccls[j];

				if ( ccl_char > i )
					break;

				if ( ccl_char == i && ! cclflags[j] )
					{
					/* We found an old companion of cclm
					 * in the ccl.  Link it into the new
					 * equivalence class and flag it as
					 * having been processed.
					 */

					bck[i] = newec;
					fwd[newec] = i;
					newec = i;
					/* Set flag so we don't reprocess. */
					cclflags[j] = 1;

					/* Get next equivalence class member. */
					/* continue 2 */
					goto next_pt;
					}
				}

			/* Symbol isn't in character class.  Put it in the old
			 * equivalence class.
			 */

			bck[i] = oldec;

			if ( oldec != NIL )
				fwd[oldec] = i;

			oldec = i;

			next_pt: ;
			}

		if ( bck[cclm] != NIL || oldec != bck[cclm] )
			{
			bck[cclm] = NIL;
			fwd[oldec] = NIL;
			}

		fwd[newec] = NIL;

		/* Find next ccl member to process. */

		for ( ++cclp; cclflags[cclp] && cclp < lenccl; ++cclp )
			{
			/* Reset "doesn't need processing" flag. */
			cclflags[cclp] = 0;
			}
		}
	}


/* mkechar - create equivalence class for single character */

void mkechar( tch, fwd, bck )
int tch, fwd[], bck[];
	{
	/* If until now the character has been a proper subset of
	 * an equivalence class, break it away to create a new ec
	 */

	if ( fwd[tch] != NIL )
		bck[fwd[tch]] = bck[tch];

	if ( bck[tch] != NIL )
		fwd[bck[tch]] = fwd[tch];

	fwd[tch] = NIL;
	bck[tch] = NIL;
	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
三级欧美在线一区| 制服丝袜亚洲网站| 欧美一区二区三区四区五区| 久久综合狠狠综合久久综合88| 亚洲丝袜自拍清纯另类| 久草精品在线观看| 欧美日韩国产一二三| 亚洲欧美日韩人成在线播放| 久久99国产精品麻豆| 欧美精品第一页| 亚洲欧美色一区| 福利一区二区在线观看| 91精品国产黑色紧身裤美女| 亚洲精品国产视频| a级精品国产片在线观看| 久久精品一区八戒影视| 韩国v欧美v日本v亚洲v| 91麻豆精品久久久久蜜臀| 一区二区在线观看视频在线观看| 丁香另类激情小说| 国产欧美精品一区二区色综合| 老汉av免费一区二区三区 | 国产精品一卡二卡在线观看| 欧美系列亚洲系列| 亚洲免费在线视频| 日本乱码高清不卡字幕| 亚洲精品自拍动漫在线| 91在线一区二区| 综合精品久久久| 99久久久精品| 成人欧美一区二区三区小说 | 爽好多水快深点欧美视频| 色哟哟亚洲精品| 亚洲激情中文1区| 色婷婷精品久久二区二区蜜臀av | 亚洲成人动漫av| 欧美日韩一区二区在线观看| 亚洲图片自拍偷拍| 欧美一区二区三区在线视频 | 国产一区二区三区在线看麻豆| 欧美一级一区二区| 精品一区二区在线观看| 久久久国产精品麻豆| 成人高清视频在线观看| 亚洲人精品午夜| 欧美色偷偷大香| 日韩中文欧美在线| 久久丝袜美腿综合| jiyouzz国产精品久久| 亚洲激情图片小说视频| 欧美久久一区二区| 国产呦萝稀缺另类资源| 亚洲婷婷综合色高清在线| 欧美三级午夜理伦三级中视频| 日本成人在线一区| 久久无码av三级| 色悠悠久久综合| 日韩精品电影在线| 国产婷婷色一区二区三区| av一区二区久久| 日韩国产精品久久久| 久久久综合视频| 在线欧美小视频| 极品少妇一区二区| 亚洲精品免费在线观看| 在线成人av网站| 国产69精品久久久久777| 亚洲成人综合网站| 欧美激情综合网| 欧美日韩高清一区二区三区| 国产福利精品一区二区| 亚洲一本大道在线| 精品国产乱码久久| 色综合久久中文综合久久97| 乱一区二区av| 一区二区三区日韩精品视频| 欧美xfplay| 在线免费观看日本一区| 国产乱人伦偷精品视频免下载| 一区二区三区中文在线| 精品国产一区二区精华| 欧美在线视频你懂得| 成人美女视频在线看| 美女网站色91| 亚洲一区二区偷拍精品| 欧美极品另类videosde| 777xxx欧美| 欧美在线观看禁18| 成人一级片在线观看| 极品美女销魂一区二区三区| 亚洲高清免费观看 | 日韩激情中文字幕| √…a在线天堂一区| 久久久久久一二三区| 欧美日产国产精品| 91亚洲精华国产精华精华液| 粉嫩一区二区三区性色av| 麻豆91精品91久久久的内涵| 亚洲自拍另类综合| 亚洲精品日韩综合观看成人91| 亚洲国产成人自拍| 欧美国产日韩亚洲一区| 久久精品亚洲一区二区三区浴池| 91精品视频网| 91超碰这里只有精品国产| 欧美三级一区二区| 欧美性大战久久| 欧美日韩情趣电影| 欧美日韩久久久| 欧美精品一卡两卡| 欧美精选在线播放| 69堂成人精品免费视频| 在线不卡免费av| 91.xcao| 正在播放亚洲一区| 4438亚洲最大| 日韩欧美国产1| 精品电影一区二区| 久久日韩精品一区二区五区| 精品理论电影在线观看| 精品乱人伦小说| 国产视频一区二区三区在线观看 | 成人黄色小视频| 成人性生交大片免费看视频在线 | 国产精品自拍三区| 成人免费毛片a| 97se亚洲国产综合自在线不卡 | 欧美久久一二三四区| 欧美日本韩国一区| 日韩欧美中文字幕制服| 精品美女被调教视频大全网站| 337p日本欧洲亚洲大胆精品| 国产丝袜在线精品| 中文字幕佐山爱一区二区免费| 一区二区三区在线观看国产| 三级不卡在线观看| 国产中文字幕一区| 9i看片成人免费高清| 欧美性一区二区| 日韩天堂在线观看| 中文字幕精品在线不卡| 亚洲欧美视频一区| 美国欧美日韩国产在线播放| 国产成人av福利| 91成人免费网站| 精品福利一区二区三区免费视频| 久久青草欧美一区二区三区| 中文字幕一区二区三区四区不卡| 亚洲夂夂婷婷色拍ww47| 国内精品久久久久影院薰衣草| www.亚洲免费av| 欧美一区二区精品在线| 日本一区二区三区电影| 亚洲午夜视频在线| 国产一区二区三区电影在线观看| 99久久精品国产观看| 欧美岛国在线观看| 亚洲欧美另类小说视频| 老司机精品视频在线| 日本韩国一区二区| 一区二区三区毛片| 国产精品中文字幕日韩精品| 91久久奴性调教| 欧美激情在线观看视频免费| 五月婷婷久久丁香| 99re热这里只有精品视频| 欧美成va人片在线观看| 一区二区三区精密机械公司| 国产自产高清不卡| 51久久夜色精品国产麻豆| 亚洲美女电影在线| 国产成人8x视频一区二区| 欧美成人国产一区二区| 亚洲成人激情av| 色香色香欲天天天影视综合网| 久久免费午夜影院| 蜜臀av亚洲一区中文字幕| 欧美性色欧美a在线播放| 亚洲欧洲av在线| 国产成人午夜高潮毛片| 欧美电影免费观看高清完整版在| 亚洲v日本v欧美v久久精品| 成人av综合在线| 国产欧美一区二区精品性| 九一九一国产精品| 日韩欧美亚洲国产另类 | 亚洲人成伊人成综合网小说| 国产精品综合一区二区三区| 日韩精品在线一区二区| 奇米色一区二区三区四区| 欧美日本在线播放| 香蕉成人啪国产精品视频综合网| 91浏览器打开| **网站欧美大片在线观看| 粉嫩嫩av羞羞动漫久久久| 国产女主播视频一区二区| 国产精品自拍三区| 亚洲国产成人在线| 本田岬高潮一区二区三区| 国产精品久久久一本精品|