Table of Contents

Class SymbolEntry

Namespace
Pl0.Core
Assembly
Pl0.Core.dll

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

name string

Symbol identifier.

kind SymbolKind

Symbol kind.

level int

Lexical level where the symbol is declared.

address int

Address or code location for the symbol.

value int

Constant value if applicable.

Properties

Address

Gets or sets the address or code location for this symbol.

public int Address { get; set; }

Property Value

int

Kind

Gets the symbol kind.

public SymbolKind Kind { get; }

Property Value

SymbolKind

Level

Gets the lexical level of the declaration.

public int Level { get; }

Property Value

int

Name

Gets the symbol name.

public string Name { get; }

Property Value

string

Value

Gets the constant value if applicable.

public int Value { get; }

Property Value

int