MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
Loading...
Searching...
No Matches
mxx::Scope Struct Reference

A single scope level, tracking declared identifiers by category. More...

#include <validator.hpp>

Public Attributes

std::unordered_set< std::string > vars
 variable names
std::unordered_set< std::string > consts
 constant names
std::unordered_set< std::string > types
 type names
std::unordered_set< std::string > funcs
 function names
std::unordered_set< std::string > procs
 procedure names
std::unordered_set< std::string > params
 parameter names

Detailed Description

A single scope level, tracking declared identifiers by category.

Definition at line 18 of file validator.hpp.

Member Data Documentation

◆ consts

std::unordered_set<std::string> mxx::Scope::consts

constant names

Definition at line 20 of file validator.hpp.

◆ funcs

std::unordered_set<std::string> mxx::Scope::funcs

function names

Definition at line 22 of file validator.hpp.

Referenced by mxx::TPValidator::declareFunc(), and mxx::TPValidator::isFuncDeclaredHere().

◆ params

std::unordered_set<std::string> mxx::Scope::params

parameter names

Definition at line 24 of file validator.hpp.

Referenced by mxx::TPValidator::declareParam(), and mxx::TPValidator::isParamDeclaredHere().

◆ procs

std::unordered_set<std::string> mxx::Scope::procs

procedure names

Definition at line 23 of file validator.hpp.

Referenced by mxx::TPValidator::declareProc(), and mxx::TPValidator::isProcDeclaredHere().

◆ types

std::unordered_set<std::string> mxx::Scope::types

type names

Definition at line 21 of file validator.hpp.

Referenced by mxx::TPValidator::declareType(), and mxx::TPValidator::isTypeDeclaredHere().

◆ vars

std::unordered_set<std::string> mxx::Scope::vars

variable names

Definition at line 19 of file validator.hpp.

Referenced by mxx::TPValidator::declareVar(), and mxx::TPValidator::isVarDeclaredHere().


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