support generating some Erlang patterns