view src/ploki/examples/fibcheck.pk @ 11328:56b2bb1446bb

<wob_jonas> perl -e open$h,"<",($f="wisdom/font");local$/;$_=<$h>;s/ \\S+sample\\.png// or die; if (1) { open $o,">",$f;print$o $_; } print;
author HackBot
date Wed, 17 Jan 2018 21:00:31 +0000
parents ac0403686959
children
line wrap: on
line source

#!../ploki
REM fibonacci sequence tester
REM sample input:
REM x x xx xxx xxxxx
REM x x x
FOR line LET line @LEGS \EING
	IF line ; ""
		IF line ~ "^s!*({[S!|[{S!}|[2!|1![1]?]{0!}[2]?][0]?]}s!+)+$"
			"fibonacci sequence!
		ELSE
			"nope...
		FI
		NEXT line
	FI