Erlang::Parser::Node::Def - a match in a function definition
Contains a single pattern match and guard expr/seq list, with the body of the function.
def
The name of the function.
args
A list of Erlang::Parser::Nodes which constitute the argument patterns to be matched.
whens
The Erlang::Parser::Node::WhenList containing guard expressions/sequences.
stmts
A list of Erlang::Parser::Nodes; the body for the function.
print
Pretty-prints the node to its filehandle argument.
x(Y) -> 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.