Mercurial > repo
view src/ploki/examples/fibcheck.pk @ 6945:c7466b5b4d6c
<oerjan> le/rn !/! is a syntax used in Haskell and Prolog for solving evaluation order problems.
author | HackBot |
---|---|
date | Wed, 24 Feb 2016 05:50:05 +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