VapourSynth-llvmexpr
Loading...
Searching...
No Matches
infix2postfix::preprocessor_detail::Token Struct Reference

Public Member Functions

 Token ()
 Token (TokenType t, std::string txt, int ln, int col)
 Token (TokenType t, std::string txt, int ln, int col, const std::variant< int64_t, double > &val)

Public Attributes

TokenType type
std::string text
int line
int column
std::variant< int64_t, double > numeric_value
bool has_numeric_value = false
size_t expansion_idx = static_cast<size_t>(-1)

Detailed Description

Definition at line 95 of file Preprocessor.cpp.

Constructor & Destructor Documentation

◆ Token() [1/3]

infix2postfix::preprocessor_detail::Token::Token ( )
inline

◆ Token() [2/3]

infix2postfix::preprocessor_detail::Token::Token ( TokenType t,
std::string txt,
int ln,
int col )
inline

Definition at line 106 of file Preprocessor.cpp.

107 : type(t), text(std::move(txt)), line(ln), column(col) {}

References column, line, text, and type.

◆ Token() [3/3]

infix2postfix::preprocessor_detail::Token::Token ( TokenType t,
std::string txt,
int ln,
int col,
const std::variant< int64_t, double > & val )
inline

Definition at line 109 of file Preprocessor.cpp.

111 : type(t), text(std::move(txt)), line(ln), column(col),
112 numeric_value(val), has_numeric_value(true) {}
std::variant< int64_t, double > numeric_value

References column, has_numeric_value, line, numeric_value, text, and type.

Member Data Documentation

◆ column

int infix2postfix::preprocessor_detail::Token::column

Definition at line 99 of file Preprocessor.cpp.

Referenced by Token(), Token(), and Token().

◆ expansion_idx

size_t infix2postfix::preprocessor_detail::Token::expansion_idx = static_cast<size_t>(-1)

Definition at line 102 of file Preprocessor.cpp.

◆ has_numeric_value

bool infix2postfix::preprocessor_detail::Token::has_numeric_value = false

Definition at line 101 of file Preprocessor.cpp.

Referenced by Token().

◆ line

int infix2postfix::preprocessor_detail::Token::line

Definition at line 98 of file Preprocessor.cpp.

Referenced by Token(), Token(), and Token().

◆ numeric_value

std::variant<int64_t, double> infix2postfix::preprocessor_detail::Token::numeric_value

Definition at line 100 of file Preprocessor.cpp.

Referenced by Token().

◆ text

std::string infix2postfix::preprocessor_detail::Token::text

Definition at line 97 of file Preprocessor.cpp.

Referenced by Token(), and Token().

◆ type


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