
and searching can be implemented with the peg module. A simple Janet function that produces PEGs
that search for strings shows how captures and looping specials can composed, and how quasiquoting
can be used to embed values in patterns.
</p>
<pre class="mendoza-codeblock"><code data-language="janet">(<span class="mdzsyn-coresym">defn</span> <span class="mdzsyn-symbol">finder</span>
 <span class="mdzsyn-string">"Creates a peg that finds all locations of str in the text."</span>
 [<span class="mdzsyn-symbol"