Zen-C
Loading...
Searching...
No Matches
Scope Struct Reference

Represents a lexical scope (block). More...

#include <parser.h>

Collaboration diagram for Scope:

Data Fields

ZenSymbolsymbols
 Linked list of symbols in this scope.
 
struct Scopeparent
 Pointer to the parent scope (NULL for global).
 

Detailed Description

Represents a lexical scope (block).

Scopes form a hierarchy (parent pointer) and contain a list of symbols defined in that scope.

Field Documentation

◆ parent

struct Scope* Scope::parent

Pointer to the parent scope (NULL for global).

◆ symbols

ZenSymbol* Scope::symbols

Linked list of symbols in this scope.


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