Class SymbolEntry
Represents a symbol table entry for constants, variables, or procedures.
public sealed class SymbolEntry
- Inheritance
-
SymbolEntry
- Inherited Members
Constructors
SymbolEntry(string, SymbolKind, int, int, int)
Creates a new symbol table entry.
public SymbolEntry(string name, SymbolKind kind, int level, int address, int value = 0)
Parameters
namestringSymbol identifier.
kindSymbolKindSymbol kind.
levelintLexical level where the symbol is declared.
addressintAddress or code location for the symbol.
valueintConstant value if applicable.
Properties
Address
Gets or sets the address or code location for this symbol.
public int Address { get; set; }
Property Value
Kind
Gets the symbol kind.
public SymbolKind Kind { get; }
Property Value
Level
Gets the lexical level of the declaration.
public int Level { get; }
Property Value
Name
Gets the symbol name.
public string Name { get; }
Property Value
Value
Gets the constant value if applicable.
public int Value { get; }