Zuzu::AST::Expr::IncDec(3)

NAME
Zuzu::AST::Expr::IncDec - AST node for increment/decrement expressions

DESCRIPTION
Represents one expression form in the abstract syntax tree and delegates evaluation to "Zuzu::Runtime".

INHERITANCE
Inherits from "Moo::Object".

ROLES
Consumes "Zuzu::AST::Role::Node".

ATTRIBUTES

  op
Type: Str.

Operator symbol, either "++" or "--".

  target
Type: ConsumerOf["Zuzu::AST::Role::Node"].

Lvalue target expression to mutate.

  postfix
Type: Bool.

True for postfix form ("x++" / "x--"), false for prefix form ("++x" / "--x").

METHODS

  evaluate
Dispatches this AST node to the matching runtime evaluator.

SEE ALSO
"Zuzu::AST::Role::Node".

Subclasses: none in this distribution.

COPYRIGHT AND LICENCE
Zuzu::AST::Expr::IncDec is copyright Toby Inkster.

It is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2.