
Arrived!

idea- grep but with redex patterns

@jagen315 Sorry I don’t follow

@katar38 has joined the channel

If you mean like matching (racket) code then you may want to look at @notjack’s resyntax
package

(define (eval .+)
C[[(Lam .+) C2[(let .+)]]])
matches a let inside a Lam case inside an eval function. is that what resyntax is about?

resyntax is like grep, except with syntax-parse
macros

it’s for automated refactoring

here’s an example of a change I generated with it https://github.com/racket/racket/pull/3689\|https://github.com/racket/racket/pull/3689

Ah! I see “grep” and think “line based search”. But that’s not what you (jaden) had in mind :grinning:

heh yeah I meant the search and replace part

Timing…

@frederic.espiau has joined the channel

There is an explosion of racket related bot activity over at https://discord.gg/4JJEfUSe\|https://discord.gg/4JJEfUSe

actually now that you mention it, just the searching part would be handy. “how many times does this pattern occur?” would be useful to know and easy for resyntax to support.