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

#include <ast.hpp>

Inheritance diagram for AST:
Collaboration diagram for AST:

Public Member Functions

 AST ()
 
 AST (lexer::token token)
 
std::tuple< yoi::indexT, yoi::indexTgetLocation ()
 
yoi::indexT getLine ()
 
yoi::indexT getColumn ()
 
yoi::lexer::tokengetToken ()
 

Private Attributes

lexer::token token
 

Detailed Description

Definition at line 15 of file ast.hpp.

Constructor & Destructor Documentation

◆ AST() [1/2]

AST ( )

Definition at line 1033 of file ast.cpp.

◆ AST() [2/2]

AST ( lexer::token  token)

Definition at line 1035 of file ast.cpp.

Member Function Documentation

◆ getColumn()

◆ getLine()

◆ getLocation()

std::tuple< yoi::indexT, yoi::indexT > getLocation ( )

Definition at line 1029 of file ast.cpp.

References lexer::token::col, lexer::token::line, and AST::token.

◆ getToken()

yoi::lexer::token & getToken ( )

Definition at line 1083 of file ast.cpp.

References AST::token.

Member Data Documentation

◆ token

lexer::token token
private

Definition at line 16 of file ast.hpp.

Referenced by AST::getColumn(), AST::getLine(), AST::getLocation(), and AST::getToken().


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