Erlang::Parser::Node::Alt - an alternative in a case or try
One alternative (the catch class (if any), pattern match, guards (if any) and expressions) in a case or try statement.
catch
True if this is a case in a catch clause. If so, it will also possess the class attribute.
class
The class in the pattern match; the 'Z' in try X catch Y:Z -> ... end.
expr
The Erlang::Parser::Node pattern match expression.
whens
A Erlang::Parser::Node::WhenList of guard sequences/expressions, if any.
stmts
A list of Erlang::Parser::Nodes; the body executed for this alternative.
print
Pretty-prints the node to its filehandle argument.
{X, Y} when is_bool(X) -> Z = Y + Y, Z * 2
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.