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

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

?? nfa.c

?? flex 詞法分析工具 類似于lex 此版本為較早前的版本
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* nfa - NFA construction 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 with or without * modification 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/nfa.c,v 2.17 95/03/04 16:11:42 vern Exp $ */#include "flexdef.h"/* declare functions that have forward references */int dupmachine PROTO((int));void mkxtion PROTO((int, int));/* add_accept - add an accepting state to a machine * * accepting_number becomes mach's accepting number. */void add_accept( mach, accepting_number )int mach, accepting_number;	{	/* Hang the accepting number off an epsilon state.  if it is associated	 * with a state that has a non-epsilon out-transition, then the state	 * will accept BEFORE it makes that transition, i.e., one character	 * too soon.	 */	if ( transchar[finalst[mach]] == SYM_EPSILON )		accptnum[finalst[mach]] = accepting_number;	else		{		int astate = mkstate( SYM_EPSILON );		accptnum[astate] = accepting_number;		(void) link_machines( mach, astate );		}	}/* copysingl - make a given number of copies of a singleton machine * * synopsis * *   newsng = copysingl( singl, num ); * *     newsng - a new singleton composed of num copies of singl *     singl  - a singleton machine *     num    - the number of copies of singl to be present in newsng */int copysingl( singl, num )int singl, num;	{	int copy, i;	copy = mkstate( SYM_EPSILON );	for ( i = 1; i <= num; ++i )		copy = link_machines( copy, dupmachine( singl ) );	return copy;	}/* dumpnfa - debugging routine to write out an nfa */void dumpnfa( state1 )int state1;	{	int sym, tsp1, tsp2, anum, ns;	fprintf( stderr,	_( "\n\n********** beginning dump of nfa with start state %d\n" ),		state1 );	/* We probably should loop starting at firstst[state1] and going to	 * lastst[state1], but they're not maintained properly when we "or"	 * all of the rules together.  So we use our knowledge that the machine	 * starts at state 1 and ends at lastnfa.	 */	/* for ( ns = firstst[state1]; ns <= lastst[state1]; ++ns ) */	for ( ns = 1; ns <= lastnfa; ++ns )		{		fprintf( stderr, _( "state # %4d\t" ), ns );		sym = transchar[ns];		tsp1 = trans1[ns];		tsp2 = trans2[ns];		anum = accptnum[ns];		fprintf( stderr, "%3d:  %4d, %4d", sym, tsp1, tsp2 );		if ( anum != NIL )			fprintf( stderr, "  [%d]", anum );		fprintf( stderr, "\n" );		}	fprintf( stderr, _( "********** end of dump\n" ) );	}/* dupmachine - make a duplicate of a given machine * * synopsis * *   copy = dupmachine( mach ); * *     copy - holds duplicate of mach *     mach - machine to be duplicated * * note that the copy of mach is NOT an exact duplicate; rather, all the * transition states values are adjusted so that the copy is self-contained, * as the original should have been. * * also note that the original MUST be contiguous, with its low and high * states accessible by the arrays firstst and lastst */int dupmachine( mach )int mach;	{	int i, init, state_offset;	int state = 0;	int last = lastst[mach];	for ( i = firstst[mach]; i <= last; ++i )		{		state = mkstate( transchar[i] );		if ( trans1[i] != NO_TRANSITION )			{			mkxtion( finalst[state], trans1[i] + state - i );			if ( transchar[i] == SYM_EPSILON &&			     trans2[i] != NO_TRANSITION )				mkxtion( finalst[state],					trans2[i] + state - i );			}		accptnum[state] = accptnum[i];		}	if ( state == 0 )		flexfatal( _( "empty machine in dupmachine()" ) );	state_offset = state - i + 1;	init = mach + state_offset;	firstst[init] = firstst[mach] + state_offset;	finalst[init] = finalst[mach] + state_offset;	lastst[init] = lastst[mach] + state_offset;	return init;	}/* finish_rule - finish up the processing for a rule * * An accepting number is added to the given machine.  If variable_trail_rule * is true then the rule has trailing context and both the head and trail * are variable size.  Otherwise if headcnt or trailcnt is non-zero then * the machine recognizes a pattern with trailing context and headcnt is * the number of characters in the matched part of the pattern, or zero * if the matched part has variable length.  trailcnt is the number of * trailing context characters in the pattern, or zero if the trailing * context has variable length. */void finish_rule( mach, variable_trail_rule, headcnt, trailcnt )int mach, variable_trail_rule, headcnt, trailcnt;	{	char action_text[MAXLINE];	add_accept( mach, num_rules );	/* We did this in new_rule(), but it often gets the wrong	 * number because we do it before we start parsing the current rule.	 */	rule_linenum[num_rules] = linenum;	/* If this is a continued action, then the line-number has already	 * been updated, giving us the wrong number.	 */	if ( continued_action )		--rule_linenum[num_rules];	sprintf( action_text, "case %d:\n", num_rules );	add_action( action_text );	if ( variable_trail_rule )		{		rule_type[num_rules] = RULE_VARIABLE;		if ( performance_report > 0 )			fprintf( stderr,			_( "Variable trailing context rule at line %d\n" ),				rule_linenum[num_rules] );		variable_trailing_context_rules = true;		}	else		{		rule_type[num_rules] = RULE_NORMAL;		if ( headcnt > 0 || trailcnt > 0 )			{			/* Do trailing context magic to not match the trailing			 * characters.			 */			char *scanner_cp = "yy_c_buf_p = yy_cp";			char *scanner_bp = "yy_bp";			add_action(	"*yy_cp = yy_hold_char; /* undo effects of setting up yytext */\n" );			if ( headcnt > 0 )				{				sprintf( action_text, "%s = %s + %d;\n",				scanner_cp, scanner_bp, headcnt );				add_action( action_text );				}			else				{				sprintf( action_text, "%s -= %d;\n",					scanner_cp, trailcnt );				add_action( action_text );				}			add_action(			"YY_DO_BEFORE_ACTION; /* set up yytext again */\n" );			}		}	/* Okay, in the action code at this point yytext and yyleng have	 * their proper final values for this rule, so here's the point	 * to do any user action.  But don't do it for continued actions,	 * as that'll result in multiple YY_RULE_SETUP's.	 */	if ( ! continued_action )		add_action( "YY_RULE_SETUP\n" );	line_directive_out( (FILE *) 0, 1 );	}/* link_machines - connect two machines together * * synopsis * *   new = link_machines( first, last ); * *     new    - a machine constructed by connecting first to last *     first  - the machine whose successor is to be last *     last   - the machine whose predecessor is to be first * * note: this routine concatenates the machine first with the machine *  last to produce a machine new which will pattern-match first first *  and then last, and will fail if either of the sub-patterns fails. *  FIRST is set to new by the operation.  last is unmolested. */int link_machines( first, last )int first, last;	{	if ( first == NIL )		return last;	else if ( last == NIL )		return first;	else		{		mkxtion( finalst[first], last );		finalst[first] = finalst[last];		lastst[first] = MAX( lastst[first], lastst[last] );		firstst[first] = MIN( firstst[first], firstst[last] );		return first;		}	}/* mark_beginning_as_normal - mark each "beginning" state in a machine *                            as being a "normal" (i.e., not trailing context- *                            associated) states * * The "beginning" states are the epsilon closure of the first state */void mark_beginning_as_normal( mach )register int mach;	{	switch ( state_type[mach] )		{		case STATE_NORMAL:			/* Oh, we've already visited here. */			return;		case STATE_TRAILING_CONTEXT:			state_type[mach] = STATE_NORMAL;			if ( transchar[mach] == SYM_EPSILON )				{				if ( trans1[mach] != NO_TRANSITION )					mark_beginning_as_normal(						trans1[mach] );				if ( trans2[mach] != NO_TRANSITION )					mark_beginning_as_normal(						trans2[mach] );				}			break;		default:			flexerror(			_( "bad state type in mark_beginning_as_normal()" ) );			break;		}	}/* mkbranch - make a machine that branches to two machines * * synopsis

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区国产精华| 精品视频在线视频| 99精品欧美一区二区三区综合在线| 久久午夜色播影院免费高清| 欧美一区二区三区四区视频| 日韩精品一区第一页| 51精品视频一区二区三区| 麻豆精品一区二区| 国产三级三级三级精品8ⅰ区| 成人a区在线观看| 亚洲精品网站在线观看| 在线综合亚洲欧美在线视频| 国产在线观看免费一区| 国产精品伦理一区二区| 欧美综合亚洲图片综合区| 日韩影视精彩在线| 国产色一区二区| 在线精品观看国产| 亚洲一区二区三区在线播放| 欧美丝袜自拍制服另类| 裸体一区二区三区| 国产日产欧美一区二区三区 | 欧美一卡二卡三卡| 国产黄色91视频| 亚洲国产wwwccc36天堂| 精品少妇一区二区三区| aaa欧美色吧激情视频| 亚洲成人你懂的| 国产清纯美女被跳蛋高潮一区二区久久w| www.综合网.com| 蜜臀久久久99精品久久久久久| 中文字幕中文字幕在线一区| 91精品国产一区二区三区蜜臀| 成人开心网精品视频| 天天操天天干天天综合网| 国产午夜精品理论片a级大结局| 欧美视频中文字幕| 粉嫩aⅴ一区二区三区四区| 午夜视频一区二区| 国产精品三级久久久久三级| 5858s免费视频成人| 成人av在线一区二区三区| 蜜桃视频一区二区三区在线观看| 亚洲欧美日韩国产综合在线 | 国产精品家庭影院| 欧美一区二区三区在线电影| 972aa.com艺术欧美| 国产精品一二二区| 秋霞国产午夜精品免费视频| 亚洲精品视频在线| 亚洲国产成人午夜在线一区| 亚洲精品一区二区在线观看| 欧美肥妇free| 欧美高清性hdvideosex| 在线一区二区三区四区| 大美女一区二区三区| 国产一区二区三区综合| 免费高清不卡av| 日韩不卡一区二区| 一区二区三区欧美| 成人a免费在线看| 国产精品主播直播| 免费xxxx性欧美18vr| 午夜激情一区二区| 亚洲一区二区三区美女| 亚洲欧洲综合另类在线| 中文字幕在线不卡| 国产日韩欧美综合一区| 精品乱人伦小说| 日韩一二三区不卡| 欧美一区三区二区| 91精品综合久久久久久| 欧美卡1卡2卡| 宅男噜噜噜66一区二区66| 欧美日韩在线亚洲一区蜜芽| 欧美少妇bbb| 欧美福利电影网| 日韩免费看的电影| 欧美xxxx老人做受| 日韩欧美中文字幕一区| 精品嫩草影院久久| 国产亚洲综合性久久久影院| 欧美国产日韩精品免费观看| 国产精品另类一区| 综合在线观看色| 悠悠色在线精品| 午夜精品123| 久久精品国产第一区二区三区| 久久成人免费网| 国产精品18久久久久久久网站| 国产精品911| 色婷婷av一区二区三区大白胸| 欧美午夜影院一区| 91精品国产综合久久精品麻豆 | 精品国产髙清在线看国产毛片 | 日韩一区二区三区电影在线观看 | 欧美一区二区大片| 欧美成人女星排行榜| 久久视频一区二区| 国产精品国产三级国产aⅴ入口| 樱花影视一区二区| 日本伊人色综合网| 国产精品一区三区| 不卡高清视频专区| 欧美日韩黄色影视| 久久亚洲精华国产精华液 | 国产精品午夜春色av| 亚洲人吸女人奶水| 三级在线观看一区二区| 国产一区二区在线免费观看| 色婷婷国产精品| 日韩三级在线免费观看| 国产精品美女久久福利网站 | 国产a精品视频| 91麻豆文化传媒在线观看| 欧美日韩大陆在线| 国产偷国产偷精品高清尤物| 亚洲一区在线观看免费| 精品一区二区三区在线观看| 99精品视频在线播放观看| 欧美福利电影网| 中文字幕中文字幕在线一区 | 一区二区不卡在线视频 午夜欧美不卡在| 日本视频中文字幕一区二区三区| 国产成人在线视频免费播放| 欧美精品777| 亚洲日穴在线视频| 国产麻豆成人传媒免费观看| 欧美视频一二三区| 亚洲国产精品av| 九九九精品视频| 在线观看中文字幕不卡| 欧美国产日韩精品免费观看| 蜜桃精品视频在线观看| 97久久精品人人澡人人爽| 欧美xxxxx牲另类人与| 亚洲va韩国va欧美va| 成人免费视频一区| 2022国产精品视频| 日韩福利视频网| 在线视频观看一区| 国产精品嫩草影院com| 国产在线视频不卡二| 91精品国产综合久久久久久久久久| 亚洲精品五月天| 91污片在线观看| 亚洲国产精品黑人久久久| 精品中文av资源站在线观看| 91麻豆精品国产91久久久久| 亚洲一区在线观看视频| 一本久久a久久精品亚洲| 国产精品久久三区| 国产成人精品影视| 精品第一国产综合精品aⅴ| 日韩国产欧美视频| 欧美日韩一区二区三区不卡| 亚洲激情综合网| 色av一区二区| 一区二区日韩电影| 日本韩国一区二区三区| 亚洲精品伦理在线| 91免费视频大全| 亚洲欧美另类小说视频| 91性感美女视频| 一区二区三区四区精品在线视频| 91蝌蚪porny成人天涯| 中文字幕色av一区二区三区| 91社区在线播放| 玉米视频成人免费看| 色婷婷久久一区二区三区麻豆| 亚洲精品欧美激情| 欧美在线播放高清精品| 亚洲国产精品久久久久婷婷884| 欧美日韩综合在线| 香蕉久久一区二区不卡无毒影院| 欧美日韩国产综合一区二区三区 | 国产成人精品影院| 欧美国产欧美综合| 顶级嫩模精品视频在线看| 国产欧美一区二区精品性| 国产成人丝袜美腿| 国产精品日产欧美久久久久| 色综合久久久久综合体桃花网| 亚洲一区二区在线免费看| 欧美日本在线观看| 美腿丝袜亚洲综合| 久久网站最新地址| 99re热这里只有精品免费视频| 亚洲综合色成人| 欧美一区二区视频在线观看2022| 久久精品国产亚洲一区二区三区| 国产亚洲一本大道中文在线| 99精品在线观看视频| 亚洲成a人片在线观看中文| 欧美不卡在线视频| 波多野结衣在线一区| 一区二区高清视频在线观看| 精品久久久久香蕉网| 岛国av在线一区| 日韩vs国产vs欧美|