picceler
Loading...
Searching...
No Matches
picceler::AssignmentNode Class Reference

AST node for assignment statements. More...

#include <ast.h>

Inheritance diagram for picceler::AssignmentNode:
picceler::ASTNode

Public Member Functions

 AssignmentNode (Location loc, std::unique_ptr< VariableNode > lhs, std::unique_ptr< ASTNode > rhs)
VariableNodelhs () const
ASTNoderhs () const
std::string toString () const override
Public Member Functions inherited from picceler::ASTNode
 ASTNode ()
virtual ~ASTNode ()=default
 ASTNode (Location loc)
 ASTNode (const ASTNode &)=delete
ASTNodeoperator= (const ASTNode &)=delete
 ASTNode (ASTNode &&)=default
ASTNodeoperator= (ASTNode &&)=default
Location location () const

Detailed Description

AST node for assignment statements.

Constructor & Destructor Documentation

◆ AssignmentNode()

picceler::AssignmentNode::AssignmentNode ( Location loc,
std::unique_ptr< VariableNode > lhs,
std::unique_ptr< ASTNode > rhs )
inline

Member Function Documentation

◆ lhs()

VariableNode * picceler::AssignmentNode::lhs ( ) const
inline

◆ rhs()

ASTNode * picceler::AssignmentNode::rhs ( ) const
inline

◆ toString()

std::string picceler::AssignmentNode::toString ( ) const
overridevirtual

Implements picceler::ASTNode.


The documentation for this class was generated from the following files:
  • /__w/picceler/picceler/include/ast.h
  • /__w/picceler/picceler/src/ast.cpp