⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ant_test.mk

📁 1984-1993模糊 C 源代码竞赛.zip 非常的好,不过这是DOS格式,要用UE去打开.
💻 MK
字号:
##	Test Driver for Anthony's Grep##	Public Domain 1992, 1993 by Anthony Howe.  No warranty.#SHELL=/bin/shPRG=./antall: ant char word anchor literal wild closure option branch sub class## Built the entry#ant: Makefile	make -f Makefile ant## Test simple text patterns without the use of meta characters.#empty: 	$(PRG) '' ant.test.mkchar:	$(PRG) 'q' ant.test.mkword:	$(PRG) 'simple' ant.test.mk## Test meta characters.#anchor: anchor1 anchor2 anchor3 anchor4 anchor5anchor1:	$(PRG) '^anchor1' ant.test.mkanchor2:	$(PRG) 'Grep$$' ant.test.mk## Find all empty lines.#anchor3:	$(PRG) '^$$' ant.test.mk## This is valid but will never match.#anchor4:	-$(PRG) 'x^a' ant.test.mk## This is valid but will never match.#anchor5:	-$(PRG) 'mk$$x' ant.test.mkliteral: literal1 literal2## Every line with a dollar-sign.	#literal1:	$(PRG) '\$$' ant.test.mk## Every line with a backslash.	#literal2:	$(PRG) '\\' ant.test.mk##	wild #1##	wild #a##	wild #%##wild:	$(PRG) '#.#' ant.test.mk##  	closure !!#  	closure !x!#	closure !xxxxxx!#closure:	$(PRG) 'closure !x*!' ant.test.mk##	option ++#	option +a+#	option +b+#	option +c+#	option +abc+#option: option1 option2option1:	$(PRG) '+b?+' ant.test.mkoption2:	$(PRG) '+.?+' ant.test.mkbranch: branch1 branch2 branch3 branch4 branch5 branch6branch1:	$(PRG) 'q|simple' ant.test.mk## This pattern should be the same as '(^all)|(Public)|(Grep$)'.#branch2:	$(PRG) '^all|Public|Grep$$' ant.test.mk## This pattern should generate the same results as branch2.#branch3:	$(PRG) 'Grep$$|^all|Public' ant.test.mk## Null expression between start of pattern and vertical-line.#branch4:	$(PRG) '|Grep' ant.test.mk## Null expression between vertical-line and end of pattern.#branch5:	$(PRG) 'Grep|' ant.test.mk## Null expression between vertical-line and vertical-line.#branch6:	$(PRG) 'all||Grep' ant.test.mk##	sub aabcbcbcxx#	sub aagxx#	sub aaggxx#	sub aadddxx#	sub aaxx#sub: sub0 sub1 sub2 sub3 sub4 sub5 lparen1 lparen2 rparen1 rparen2## Null sub-expressions.#sub0:	$(PRG) 's()u()b()' ant.test.mksub1:	$(PRG) '#(1|%)#' ant.test.mksub2:	$(PRG) 'aa((bc)*|g)xx' ant.test.mk## Null expression between the left-parenthesis and the vertical-line.#sub3:	$(PRG) '#(|1)#' ant.test.mk## Null expression between the vertical-line and the right-parenthesis.#sub4:	$(PRG) '#(1|)#' ant.test.mk## Null expression between the vertical-line and the right-parenthesis.#sub5:	$(PRG) '#(%||1)#' ant.test.mk## Missing left-parenthesis generates an error.#lparen1:	-$(PRG) 'left ( only' ant.test.mklparen2:	$(PRG) 'left \( only' ant.test.mk## Right-parenthesis without preceding left parenthesis should be a literal.#rparen1:	-$(PRG) 'right ) only' ant.test.mkrparen2:	$(PRG) 'right \) only' ant.test.mk##		12345678#	-----------------#	=0=	1  45#	=1=	 2 45 78#	=2=	 2 45#	=3=	 2 45 78#	=4=	 2 45#	=5=	 2 45#	=6=	 2 45#	=7=	 2 45#	=8=	 2 45#	=9=	1  45#	=]=	 23  6#	=-=	 2 4 678#	= =	 2 4 6#class:	class1 class2 class3 class4 class5 class6 class7 class8class1:	$(PRG) '=[09]=' ant.test.mkclass2:	$(PRG) '=[^09]=' ant.test.mkclass3:	$(PRG) '=[]]=' ant.test.mkclass4:	$(PRG) '=[^]]=' ant.test.mkclass5:	$(PRG) '=[0-9]=' ant.test.mkclass6:	$(PRG) '=[^0-9]=' ant.test.mkclass7:	-$(PRG) '=[3-1]=' ant.test.mkclass8:	$(PRG) '=[-13]=' ant.test.mk

⌨️ 快捷键说明

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