{deps, [beamoji]}
{project_plugins, [beamoji]}.
$ rebar3 emojify
$ rebar3 compile
$ rebar3 test
'ποΈ'(P, [H | T]) ->
case P(H) of
'βοΈ' ->
{'βοΈ', H};
'β' ->
'ποΈ'(P, T)
end;
'ποΈ'(P, []) ->
'β'.
'πππππΏοΈβ€οΈ'(P, [H | T]) ->
case P(H) of
'π¦ππ¦π' ->
{'βοΈππ¦π¦π', H};
'π₯ππ¦ππ' ->
'πππππΏοΈβ€οΈ'(P, T)
end;
'πππππΏοΈβ€οΈ'(P, []) ->
'π₯ππ¦ππ'.
rebar3 new lib name=beamojilib
cd ./beamojilib/
echo "" >> rebar.config
echo '{project_plugins, [beamoji]}.' >> rebar.config
wget https://raw.githubusercontent.com/spawnfest/beamoji/%E2%93%82%EF%B8%8F/test/beamoji_roundtrip_SUITE_data/emojifyme.erl -O src/emojifyme.erl
head -n 25 src/emojifyme.erl
rebar3 emojify
# or
# rebar3 emojify --translator beamoji_baseemoji_translator
head -n 25 src/emojifyme.erl
rebar3 shell
emojifyme:sum([1, 2, 3, 4]).
https://quiz.elixircards.co.uk/BEAMoji