cleanup Nim's examples/ directory; closes #7725

This commit is contained in:
Araq 2018-09-03 18:29:00 +02:00
commit 320582a55c
68 changed files with 2 additions and 8623 deletions

View file

@ -0,0 +1,7 @@
# Filter key=value pairs from "myfile.txt"
import pegs
for x in lines("myfile.txt"):
if x =~ peg"{\ident} \s* '=' \s* {.*}":
echo "Key: ", matches[0],
" Value: ", matches[1]