NAME

Zuzu::AST::Role::Node - role implemented by all AST nodes

DESCRIPTION

Defines the common evaluate interface and source-location metadata contract for AST node classes.

ATTRIBUTES

file

Type: Maybe[Str].

Source filename used for diagnostics.

line

Type: Int.

1-based source line number used for diagnostics.

SEE ALSO

Zuzu::AST::Program, Zuzu::AST::Block, Zuzu::AST::Stmt::Let, Zuzu::AST::Stmt::Assign, Zuzu::AST::Stmt::If, Zuzu::AST::Stmt::While, Zuzu::AST::Stmt::For, Zuzu::AST::Stmt::Function, Zuzu::AST::Stmt::Return, Zuzu::AST::Stmt::Next, Zuzu::AST::Stmt::Last, Zuzu::AST::Stmt::Expr, Zuzu::AST::Stmt::Import, Zuzu::AST::Expr::Literal, Zuzu::AST::Expr::Var, Zuzu::AST::Expr::Binary, Zuzu::AST::Expr::Unary, Zuzu::AST::Expr::Call, Zuzu::AST::Expr::MemberCall, Zuzu::AST::Expr::Index, Zuzu::AST::Expr::DictGet, Zuzu::AST::Expr::Array, Zuzu::AST::Expr::Dict.

COPYRIGHT AND LICENCE

Zuzu::AST::Role::Node 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.