meander

All things about https://github.com/noprompt/meander Need help and no one responded? Feel free to ping @U5K8NTHEZ
markaddleman 2021-03-07T18:04:51.077400Z

I'm trying epsilon interpreter for the first time. I'm trying to create a searcher function that mimics the behavior of the m/search expression. What am I doing wrong?

jimmy 2021-03-08T14:07:40.084500Z

Didn't get a chance to meet up with Joel on this. Will make what I think is the fix today and put a PR out.

markaddleman 2021-03-08T19:07:24.092Z

Thanks!

jimmy 2021-03-09T04:43:20.092500Z

Pushed up the fix. Should work in the next release.

markaddleman 2021-03-09T11:58:06.092800Z

Thanks!

markaddleman 2021-03-09T14:39:10.093Z

Thanks!

markaddleman 2021-03-07T18:10:20.077700Z

After doing a bit of source spelunking... Is scan not supported in interpreter?

2021-03-07T18:24:43.078Z

you should use the functions available in ns meander.epsilon.interpreter not meander.epsilon

2021-03-07T18:27:02.078500Z

i would also recommend looking at the test file

2021-03-07T18:28:02.079Z

meander develops faster than the documentation is completed

2021-03-07T18:28:34.079200Z

but the tests are always up to date and cover 100% of what the meander can do

jimmy 2021-03-07T18:53:50.079400Z

So I’m not sure I’d go as far as to say that the tests cover 100%. We try our best, but testing and documentation are definitely lacking. There are a few things going on here. First the second argument to searcher is actually function that receives an environment. So you probably want rewriter.

((mi/rewriter '[_ ... ?a . _ ...] '?a) [1])
Second, it looks like scan is having an issue. Seems that pred is the root cause. I think I have a fix for it, but the area I know the least in meander, so will have to check with joel before I commit anything. Hopefully can get the fix up on github today.

1🙏