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

#include <ast.hpp>

Inheritance diagram for uniqueExpr:
Collaboration diagram for uniqueExpr:

Public Member Functions

lexer::tokengetOp ()
 
abstractExprgetLhs () const
 
 operator bool () 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
 
abstractExprlhs {}
 

Detailed Description

Definition at line 455 of file ast.hpp.

Member Function Documentation

◆ getLhs()

abstractExpr & getLhs ( ) const

Definition at line 115 of file ast.cpp.

References uniqueExpr::lhs.

◆ getOp()

lexer::token & getOp ( )

Definition at line 111 of file ast.cpp.

References uniqueExpr::op.

Referenced by visitor::visit().

Here is the caller graph for this function:

◆ operator bool()

operator bool ( ) const

Definition at line 119 of file ast.cpp.

References lexer::token::unknown.

Member Data Documentation

◆ lhs

abstractExpr* lhs {}

Definition at line 458 of file ast.hpp.

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

◆ op

Definition at line 457 of file ast.hpp.

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


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