dynamic binding of patterns to funs using on the-fly module creation with the erlang syntax tree