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

Represents a symbol in the symbol table. More...

#include <parser.h>

Collaboration diagram for ZenSymbol:

Data Fields

char * name
 Symbol name.
 
char * type_name
 String representation of the type.
 
Typetype_info
 Formal type definition.
 
int is_used
 1 if the symbol has been referenced.
 
int is_autofree
 1 if it requires automatic memory management (RAII).
 
Token decl_token
 Token where the symbol was declared.
 
int is_const_value
 1 if it is a compile-time constant.
 
int is_def
 1 if it is a definition (vs declaration).
 
int const_int_val
 Integer value if it is a constant.
 
int is_moved
 1 if the value has been moved (ownership transfer).
 
struct ZenSymbolnext
 Next symbol in the bucket/list (chaining).
 

Detailed Description

Represents a symbol in the symbol table.

Used for variables, functions, and other named entities.

Field Documentation

◆ const_int_val

int ZenSymbol::const_int_val

Integer value if it is a constant.

◆ decl_token

Token ZenSymbol::decl_token

Token where the symbol was declared.

◆ is_autofree

int ZenSymbol::is_autofree

1 if it requires automatic memory management (RAII).

◆ is_const_value

int ZenSymbol::is_const_value

1 if it is a compile-time constant.

◆ is_def

int ZenSymbol::is_def

1 if it is a definition (vs declaration).

◆ is_moved

int ZenSymbol::is_moved

1 if the value has been moved (ownership transfer).

◆ is_used

int ZenSymbol::is_used

1 if the symbol has been referenced.

◆ name

char* ZenSymbol::name

Symbol name.

◆ next

struct ZenSymbol* ZenSymbol::next

Next symbol in the bucket/list (chaining).

◆ type_info

Type* ZenSymbol::type_info

Formal type definition.

◆ type_name

char* ZenSymbol::type_name

String representation of the type.


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