hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
leftExpr Class Reference

#include <ast.hpp>

Inheritance diagram for leftExpr:
Collaboration diagram for leftExpr:

Public Member Functions

lexer::tokengetOp ()
 
uniqueExprgetLhs () const
 
rExprgetRhs () const
 
bool hasRhs () const
 
- Public Member Functions inherited from AST
 AST ()
 
 AST (lexer::token token)
 
std::tuple< yoi::indexT, yoi::indexTgetLocation ()
 
yoi::indexT getLine ()
 
yoi::indexT getColumn ()
 
yoi::lexer::tokengetToken ()
 

Public Attributes

lexer::token op
 
uniqueExprlhs
 
rExprrhs
 

Detailed Description

Definition at line 467 of file ast.hpp.

Member Function Documentation

◆ getLhs()

uniqueExpr & getLhs ( ) const

Definition at line 127 of file ast.cpp.

References leftExpr::lhs.

◆ getOp()

lexer::token & getOp ( )

Definition at line 123 of file ast.cpp.

References leftExpr::op.

Referenced by visitor::visit().

Here is the caller graph for this function:

◆ getRhs()

rExpr & getRhs ( ) const

Definition at line 131 of file ast.cpp.

References leftExpr::rhs.

◆ hasRhs()

bool hasRhs ( ) const

Definition at line 135 of file ast.cpp.

References leftExpr::rhs.

Referenced by yoi::finalizeAST(), Formatter::format(), and visitor::visit().

Here is the caller graph for this function:

Member Data Documentation

◆ lhs

uniqueExpr* lhs

Definition at line 470 of file ast.hpp.

Referenced by yoi::finalizeAST(), Formatter::format(), leftExpr::getLhs(), and visitor::visit().

◆ op

Definition at line 469 of file ast.hpp.

Referenced by Formatter::format(), and leftExpr::getOp().

◆ rhs


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