<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code Clone Matching: A Practical and Effective Approach to Find Code Snippets · HackerPapers discussions</title><link>https://hackerpaper.kaipfister.de/p/2003.05615/</link><description>Collected HN comments and submissions linking this paper.</description><language>en</language><lastBuildDate>Mon, 02 Nov 2026 11:16:22 GMT</lastBuildDate><atom:link href="https://hackerpaper.kaipfister.de/p/2003.05615/feed.xml" rel="self" type="application/rss+xml" /><item><title>Code Clone Matching: A Practical and Effective Approach to Find Code Snippets — mentioned by elanning</title><link>https://news.ycombinator.com/item?id=28250082</link><guid isPermaLink="false">urn:hackerpapers:mention:2003.05615:28250082</guid><pubDate>Fri, 20 Aug 2021 19:05:13 GMT</pubDate><description>&lt;p&gt;I recently wrote a little Regex domain specific language that&amp;#x27;s translated into regular JavaScript regex. I was inspired by CCGrep: https://arxiv.org/abs/2003.05615 because its syntax looked so clean and yet powerful. Examples of it look like `$# ($a == $1) { return $$$; }` $# - match any keyword, eg `do`, `while`, etc. $a - match any variable. $1 - match any literal. $$$ - match any block (greedy). It&amp;#x27;s also whitespace invariant, so `if($a==$1)` is equivalent to `if ($a == $1)`. All that to say, I wonder if we&amp;#x27;re missing out on a variety of &amp;quot;domain specific regexes&amp;quot; for various fields.&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2003.05615/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.SE</category></item></channel></rss>
