Hey all!
I’ve been working on an elixir-to-matchspec compiler. Think ex2ms with support for a few more expressions, pattern support, tracing support, helpful errors, and some other niceties.
Right now it’s passing ex2ms
's test suite, and I’ve added many tests of my own, but… I know I’ve seen edge cases where bad matchspecs were generated during development that I forgot to jot down. Also, I’d love to see it build other matchspecs used in the field that people have crafted by hand!
So, it’d be incredibly helpful if anyone cared to share theirs to bolster my test suite! I’m interested in:
- matchspecs passed to
:ets.select...
:recon_trace.calls/2
Registry.select/2
:dbg.tp...
:erlang.trace_pattern...
- matchpatterns passed to
:ets.match...
Registry.match/4
-
especially anything with
- non-trivial destructuring in the match heads
- nested tuple literals in match bodies
All contributions greatly appreciated!