Mercurial > repo
view src/ploki/examples/fibcheck.pk @ 6745:9fa261e3c10e
<zgrep> ` echo \'f=`echo "$1" | sed \'"\'"\'s/ = .*$//\'"\'"\'`;c=`echo "$1" | sed \'"\'"\'s/^.* = //\'"\'"\'`;echo "$c" >> "$f"\' > bin/append
author | HackBot |
---|---|
date | Wed, 10 Feb 2016 03:38:01 +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