view zotnet/tws/lexedit.sed @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children
line wrap: on
line source

2,/^extern int yylineno;$/c\
static int start_cond = 0;\
#define BEGIN start_cond =
/^struct yysvf \*yyestate;$/,/^extern struct yysvf yysvec/d
/^# define YYNEWLINE /,/^[ 	]*int nstr;/d
/^[ 	]*while((nstr = yylook()/,/^[ 	]*if(yywrap()) /d
/^case -1:$/,/^} return(0); }/c\
	default: return(0);\
} }
/^struct yysvf *yybgin = yysvec+1;$/d
/^int yylineno /,$d
/^# define YYTYPE short/c\
# define YYTYPE int
/^unsigned char yymatch\[\] = {/c\
char yymatch[] = {
/^unsigned char yyextra\[\] = {/c\
char yyextra[] = {
/^# define YYTYPE unsigned short/c\
# define YYTYPE int
/^if (__once_yylex) {$/,/if(yymbcurmax<=0) yymbcurmax=MB_CUR_MAX;$/d