Mercurial > repo
view src/ploki/examples/string.pk @ 8916:0234daffd946
<oerjan> addquote <int-e> I couldn\'t help thinking that maybe if one considers the ramifications in full detail it will turn out that overthinking is often not helpful and therefore, not something to be proud of.
author | HackBot |
---|---|
date | Sun, 14 Aug 2016 02:31:47 +0000 |
parents | ac0403686959 |
children |
line wrap: on
line source
#!../ploki LET pat "\"{<'^\"\\'*><(\\.<'^\"\\'*>)*>}\"" FOR line LET line @LEGS \EING IF line ; "" FOR match LET p line ~ pat IF p WUNT "> `\V\0' LET line line [ (p + 2 + @LENGTH \0) NEXT match FI NEXT line FI