ms_transform
ms_transform
Module
ms_transform
Module summary
Parse_transform that translates fun syntax into match specifications.
Description
This module implements the parse_transform that makes calls to ets
and dbg
:fun2ms/1
translate into literal match specifications. It also implements the back end for the same functions when called from the Erlang shell.
The translations from fun's to match_specs is accessed through the two "pseudo functions" ets:fun2ms/1
and dbg:fun2ms/1
.
Actually this introduction is more or less an introduction to the whole concept of match specifications. Since everyone trying to use ets:select
or dbg
seems to end up reading this page, it seems in good place to explain a little mo