Mercurial > repo
view src/ploki/examples/beer.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 LET bottle("") " bottles of beer" LET bottle(1) " bottle of beer" LET n 99 FOR beer WUNT (n_bottle(n=1)_" on the wall,\n"_n_bottle(n=1)_",\ntake one down and pass it around,\n") LET n n-1 WUNT (n_bottle(n=1)_" on the wall.\n\n") IF n NEXT beer FI