view src/ploki/examples/fibcheck.pk @ 12274:3c04e9ef7a3a draft

<kspalaiologos> `` cp -rf /hackenv/tmp/asmbf-1.2.7/bin/* /hackenv/lib/kps/
author HackEso <hackeso@esolangs.org>
date Tue, 31 Dec 2019 17:47:30 +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