Porytiles
Loading...
Searching...
No Matches
porytiles::IndexedArrayEntry Struct Reference

One designated-initializer entry of an indexed array. More...

#include <indexed_array_declaration.hpp>

Collaboration diagram for porytiles::IndexedArrayEntry:
[legend]

Public Attributes

std::string index_name
 
std::optional< std::int64_t > value
 
std::vector< Tokenvalue_tokens
 
SourcePosition position
 

Detailed Description

One designated-initializer entry of an indexed array.

Represents a single [index] = value element. index_name is the text of the designator (typically an enum member name such as METATILE_ATTRIBUTE_BEHAVIOR, or a numeric literal). value holds the evaluated value when the value expression could be resolved from the parser's symbol table; it is absent when the expression referenced an unknown symbol. value_tokens keeps the raw value expression so a caller can re-evaluate it against a richer symbol table later.

Definition at line 21 of file indexed_array_declaration.hpp.

Member Data Documentation

◆ index_name

std::string porytiles::IndexedArrayEntry::index_name

Definition at line 22 of file indexed_array_declaration.hpp.

◆ position

SourcePosition porytiles::IndexedArrayEntry::position

Definition at line 25 of file indexed_array_declaration.hpp.

◆ value

std::optional<std::int64_t> porytiles::IndexedArrayEntry::value

Definition at line 23 of file indexed_array_declaration.hpp.

◆ value_tokens

std::vector<Token> porytiles::IndexedArrayEntry::value_tokens

Definition at line 24 of file indexed_array_declaration.hpp.


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