Mercurial > repo
view src/ploki/examples/try.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 LET pat "foo{.*}bar" LET i 0 FOR loop IF i < 2 IF "afoo42bar" ?o~ pat "match \Vi -- \V\0 ELSE "no match \Vi FI LET i += 1 LET pat "{a}" NEXT loop FI