VapourSynth-llvmexpr
Loading...
Searching...
No Matches
infix2postfix::BinaryExpr Struct Reference

#include <llvmexpr/frontend/infix2postfix/AST.hpp>

Collaboration diagram for infix2postfix::BinaryExpr:

Public Member Functions

 BinaryExpr (std::unique_ptr< Expr > l, Token o, std::unique_ptr< Expr > r)

Public Attributes

std::unique_ptr< Exprleft
Token op
std::unique_ptr< Exprright
Range range

Detailed Description

Definition at line 66 of file AST.hpp.

Constructor & Destructor Documentation

◆ BinaryExpr()

infix2postfix::BinaryExpr::BinaryExpr ( std::unique_ptr< Expr > l,
Token o,
std::unique_ptr< Expr > r )
inline

Definition at line 291 of file AST.hpp.

293 : left(std::move(l)), op(std::move(o)), right(std::move(r)) {
294 range.start = left ? left->range().start : op.range.start;
295 range.end = right ? right->range().end : op.range.end;
296}
std::unique_ptr< Expr > right
Definition AST.hpp:69
std::unique_ptr< Expr > left
Definition AST.hpp:67

References left, op, range, and right.

Member Data Documentation

◆ left

std::unique_ptr<Expr> infix2postfix::BinaryExpr::left

Definition at line 67 of file AST.hpp.

Referenced by BinaryExpr().

◆ op

Token infix2postfix::BinaryExpr::op

Definition at line 68 of file AST.hpp.

Referenced by BinaryExpr().

◆ range

Range infix2postfix::BinaryExpr::range

Definition at line 70 of file AST.hpp.

Referenced by BinaryExpr().

◆ right

std::unique_ptr<Expr> infix2postfix::BinaryExpr::right

Definition at line 69 of file AST.hpp.

Referenced by BinaryExpr().


The documentation for this struct was generated from the following file:
  • llvmexpr/frontend/infix2postfix/AST.hpp