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

#include <ast.hpp>

Inheritance diagram for subscript:
Collaboration diagram for subscript:

Public Member Functions

bool isInvocation () const
 
bool isSubscript () const
 
rExprgetExpr () 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

rExprexpr
 
invocationArgumentsargs
 

Detailed Description

Definition at line 349 of file ast.hpp.

Member Function Documentation

◆ getExpr()

rExpr & getExpr ( ) const

Definition at line 63 of file ast.cpp.

References subscript::expr.

◆ isInvocation()

bool isInvocation ( ) const

Definition at line 1075 of file ast.cpp.

References subscript::args.

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

Here is the caller graph for this function:

◆ isSubscript()

bool isSubscript ( ) const

Definition at line 1071 of file ast.cpp.

References subscript::expr.

Referenced by yoi::finalizeAST().

Here is the caller graph for this function:

Member Data Documentation

◆ args

Definition at line 352 of file ast.hpp.

Referenced by yoi::finalizeAST(), Formatter::format(), and subscript::isInvocation().

◆ expr


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