view src/ploki/examples/reset.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
IF @NOT ("foo" ~ "{.}0!") | (\0 ; "o")
	"error
	END -1
FI
IF "foo" ~ "b"
	"error
	END -1
FI
IF @DEF-P \0
	"ARGH: match variable not reset
	END -1
FI
"ok