All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
aul::ast::BinOpExpr Class Referenceabstract

#include <C4AulAST.h>

Inheritance diagram for aul::ast::BinOpExpr:
Collaboration diagram for aul::ast::BinOpExpr:

Public Member Functions

 BinOpExpr (int op, ExprPtr &&lhs, ExprPtr &&rhs)
virtual bool has_value () const override
virtual void accept (::aul::AstVisitor *) const =0

Public Attributes

ExprPtr lhs
ExprPtr rhs
int op
const char * loc = nullptr

Detailed Description

Definition at line 222 of file C4AulAST.h.

Constructor & Destructor Documentation

aul::ast::BinOpExpr::BinOpExpr ( int  op,
ExprPtr &&  lhs,
ExprPtr &&  rhs 

Definition at line 226 of file C4AulAST.h.

226 : op(op), lhs(std::move(lhs)), rhs(std::move(rhs)) {}

Member Function Documentation

virtual void aul::ast::Node::accept ( ::aul::AstVisitor ) const
pure virtualinherited
virtual bool aul::ast::Expr::has_value ( ) const

Reimplemented from aul::ast::Stmt.

Definition at line 150 of file C4AulAST.h.

150 { return true; }

Member Data Documentation

ExprPtr aul::ast::BinOpExpr::lhs

Definition at line 227 of file C4AulAST.h.

const char* aul::ast::Node::loc = nullptr

Definition at line 128 of file C4AulAST.h.

int aul::ast::BinOpExpr::op

Definition at line 228 of file C4AulAST.h.

ExprPtr aul::ast::BinOpExpr::rhs

Definition at line 227 of file C4AulAST.h.

The documentation for this class was generated from the following file: