byucc.edif.libraries.xilinx
Class SymbolTable

java.lang.Object
  extended by byucc.edif.libraries.xilinx.SymbolTable

public class SymbolTable
extends java.lang.Object

Used for building the symbol tables.

Version:
$Id: SymbolTable.java,v 1.2 2004/05/06 00:47:34 tsa6 Exp $

Field Summary
(package private)  java.lang.String block_name
           
(package private)  java.util.Vector symbols
          Vector, where the symbols are stored.
(package private)  SymbolTable upper_symtab
          Hierarchie of symbol tables is stored using this variable.
 
Constructor Summary
SymbolTable()
           
 
Method Summary
 void addSymbol(Symbol s)
          Add an identifier to symbol table
 void dump()
          dump the symbol table
 void endBlock(java.lang.String identifier)
          End a block with identifier identifier.
 Symbol getSymbol(java.lang.String identifier)
          Get a symbol from the symbol table
 void newBlock(java.lang.String identifier)
          Start a new Block
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

symbols

java.util.Vector symbols
Vector, where the symbols are stored.


upper_symtab

SymbolTable upper_symtab
Hierarchie of symbol tables is stored using this variable. The upper symbol table is the enclosing architecture, entity, ... scope.


block_name

java.lang.String block_name
Constructor Detail

SymbolTable

public SymbolTable()
Method Detail

addSymbol

public void addSymbol(Symbol s)
Add an identifier to symbol table


getSymbol

public Symbol getSymbol(java.lang.String identifier)
Get a symbol from the symbol table


newBlock

public void newBlock(java.lang.String identifier)
Start a new Block


endBlock

public void endBlock(java.lang.String identifier)
End a block with identifier identifier.


dump

public void dump()
dump the symbol table