Mercurial > repo
view src/ploki/examples/fibcheck.pk @ 5829:a062ac5f3fc0
<oerjan> addquote <Jafet> Some people, when confronted with a problem, think "I know, I\'ll use the Banach-Tarski theorem."
author | HackBot |
---|---|
date | Sat, 11 Jul 2015 03:47:27 +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