spdegabrielle
2021-2-25 13:01:24

Arrived!


jagen315
2021-2-25 13:54:01

idea- grep but with redex patterns


mark.warren
2021-2-25 14:13:01

@jagen315 Sorry I don’t follow


katar38
2021-2-25 15:01:53

@katar38 has joined the channel


samdphillips
2021-2-25 17:40:37

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


jagen315
2021-2-25 20:05:14

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


notjack
2021-2-25 20:06:39

resyntax is like grep, except with syntax-parse macros


notjack
2021-2-25 20:06:57

it’s for automated refactoring


notjack
2021-2-25 20:07:45

soegaard2
2021-2-25 20:08:07

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


notjack
2021-2-25 20:08:39

heh yeah I meant the search and replace part


soegaard2
2021-2-25 20:18:11

Timing…


frederic.espiau
2021-2-25 20:31:02

@frederic.espiau has joined the channel


spdegabrielle
2021-2-25 22:58:11

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


notjack
2021-2-25 23:33:24

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.