bug1054496.re

来自「a little DFA compiler.」· RE 代码 · 共 35 行

RE
35
字号
#include <stdlib.h>#include <stdio.h>#include <string.h>#define RET(n)	printf("%d\n", n); return n#define TAG_EOI	0#define TAG_A	1#define TAG_TAG	2int scan(char *s, int l){	char *p = s;	char *q;#define YYCTYPE         char#define YYCURSOR        p#define YYLIMIT         (s+l)#define YYMARKER        q#define YYFILL(n)cont:/*!re2cany = [\001-\377];'<a' 			{ RET(TAG_A); }[<][A-Za-z]+	{ RET(TAG_TAG); }[\000]			{ RET(TAG_EOI); }any				{ goto cont; }*/}#define do_scan(str) scan(str, strlen(str))main(){	do_scan("0");}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?