|
Zen-C
|
Represents a symbol in the symbol table. More...
#include <parser.h>

Data Fields | |
| char * | name |
| Symbol name. | |
| char * | type_name |
| String representation of the type. | |
| Type * | type_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 ZenSymbol * | next |
| Next symbol in the bucket/list (chaining). | |
Represents a symbol in the symbol table.
Used for variables, functions, and other named entities.
| int ZenSymbol::const_int_val |
Integer value if it is a constant.
| int ZenSymbol::is_autofree |
1 if it requires automatic memory management (RAII).
| int ZenSymbol::is_const_value |
1 if it is a compile-time constant.
| int ZenSymbol::is_def |
1 if it is a definition (vs declaration).
| int ZenSymbol::is_moved |
1 if the value has been moved (ownership transfer).
| int ZenSymbol::is_used |
1 if the symbol has been referenced.
| char* ZenSymbol::name |
Symbol name.
| struct ZenSymbol* ZenSymbol::next |
Next symbol in the bucket/list (chaining).
| Type* ZenSymbol::type_info |
Formal type definition.
| char* ZenSymbol::type_name |
String representation of the type.