Arlen Cuss > Erlang-Parser-0.5.1 > Erlang::Parser::Node::Def

Download:
Erlang-Parser-0.5.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Erlang::Parser::Node::Def - a match in a function definition

DESCRIPTION ^

Contains a single pattern match and guard expr/seq list, with the body of the function.

Accessors

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.

Methods

print

Pretty-prints the node to its filehandle argument.

EXAMPLE ^

        x(Y) ->
                Z = Y + Y,
                Z * 2
syntax highlighting: