ArkScript
A small, fast, functional and scripting language for video games
Ark::CodeError Struct Referencefinal

CodeError thrown by the compiler (parser, macro processor, optimizer, and compiler itself) More...

#include <Exceptions.hpp>

Inheritance diagram for Ark::CodeError:
[legend]
Collaboration diagram for Ark::CodeError:
[legend]

Public Member Functions

 CodeError (const std::string &what, std::string filename_, const std::size_t lineNum, const std::size_t column, std::string exp, const std::optional< internal::utf8_char_t > opt_sym=std::nullopt)
 
- Public Member Functions inherited from Ark::Error
 Error (const std::string &message)
 

Public Attributes

const std::string filename
 
const std::size_t line
 
const std::size_t col
 
const std::string expr
 
const std::optional< internal::utf8_char_tsymbol
 

Detailed Description

CodeError thrown by the compiler (parser, macro processor, optimizer, and compiler itself)

Definition at line 84 of file Exceptions.hpp.

Constructor & Destructor Documentation

◆ CodeError()

Ark::CodeError::CodeError ( const std::string & what,
std::string filename_,
const std::size_t lineNum,
const std::size_t column,
std::string exp,
const std::optional< internal::utf8_char_t > opt_sym = std::nullopt )
inline

Definition at line 92 of file Exceptions.hpp.

Member Data Documentation

◆ col

const std::size_t Ark::CodeError::col

Definition at line 88 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().

◆ expr

const std::string Ark::CodeError::expr

Definition at line 89 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().

◆ filename

const std::string Ark::CodeError::filename

Definition at line 86 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().

◆ line

const std::size_t Ark::CodeError::line

Definition at line 87 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().

◆ symbol

const std::optional<internal::utf8_char_t> Ark::CodeError::symbol

Definition at line 90 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().


The documentation for this struct was generated from the following file: