Fork me on GitHub
#meander
<
2022-08-06
>
bbss05:08:44

I'm parsing a bunch of python into an ast and so I can answer some questions about it and thought of using meander for that, so far it's proven very useful and elegant. I hope I can keep figuring it out as my "questions" become more complicated 🙂

bbss05:08:58

for example I wanted to "find all the places where ?x get called and give me the ?first-argument ?x gets called with" so used search and $ to describe the pattern in the ast. Then I used scan on the arguments, but that made it so there is no notion of "first" so I did some transformation on the result, however. Then I thought perhaps I could not scan but try a vector with logic-var in the first position and a &rest after that (first tried ... in stead of &rest) Don't see any mention of & in the docs but happy it worked intuitively like that 🙂

noprompt06:08:27

@U09MR0T5Y I would be happy to give you a hand (the Python bit has me curious since I'm starting to mess around with Python myself). Can I ping you Monday or some time next week?

bbss06:08:44

Oh cool, sure, I don't have many questions just yet, but happy to chat about what I'm making :)

noprompt06:08:06

Nice. OK. I'll get in touch next week. 🙂

👍 1