view src/ploki/examples/fibcheck.pk @ 12296:042127c1c142 draft

<fizzie> ` rm /hackenv/bin/bfi; ln -s /hackenv/lib/kps/bfi /hackenv/bin/bfi # no need for actual copies that you can forget to delete though
author HackEso <hackeso@esolangs.org>
date Sat, 04 Jan 2020 13:28:36 +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