Erlang::Parser::Node::Case - a case expression
An expression which tries several different pattern matches and guards.
of
An Erlang::Parser::Node which is evaluated to be matched against alts.
alts
A list of Erlang::Parser::Node::Alts which are tried against of in turn.
print
Pretty-prints the node to its filehandle argument.
case ?MODULE:myfun() of {X, Y} -> io:format("I'm a tuple! ~p, ~p~n", [X, Y]); [X, Y] = Z -> io:format("I'm a list! ~p, ~p~n", Z) end
To install Erlang::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Erlang::Parser
CPAN shell
perl -MCPAN -e shell install Erlang::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.