Mercurial > repo
view src/ploki/examples/fibcheck.pk @ 6180:24d773fb3f86
<oerjan> ` sed -i \'2ctr A-Z a-z\' bin/lowercase
author | HackBot |
---|---|
date | Tue, 03 Nov 2015 23:55:44 +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