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

AST node for binary operations (arithmetic and relational). More...

#include <ast.h>

Inheritance diagram for picceler::BinaryOpNode:
picceler::ASTNode

Public Member Functions

 BinaryOpNode (Location loc, std::string op, std::unique_ptr< ASTNode > lhs, std::unique_ptr< ASTNode > rhs)
const std::string & op () const
ASTNodelhs () 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 binary operations (arithmetic and relational).

Constructor & Destructor Documentation

◆ BinaryOpNode()

picceler::BinaryOpNode::BinaryOpNode ( Location loc,
std::string op,
std::unique_ptr< ASTNode > lhs,
std::unique_ptr< ASTNode > rhs )
inline

Member Function Documentation

◆ lhs()

ASTNode * picceler::BinaryOpNode::lhs ( ) const
inline

◆ op()

const std::string & picceler::BinaryOpNode::op ( ) const
inline

◆ rhs()

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

◆ toString()

std::string picceler::BinaryOpNode::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