prolog.model
Interface ISymbolTable

All Known Implementing Classes:
SymbolTable

public interface ISymbolTable

The symboltable is created by the scanner and parser during parsing. All identifiers and strings of the sourceprogram are replaced by a number. In the symboltable, the relation between the number and the original string is stored


Method Summary
 void clear()
          clears the symboltyble
 java.lang.String decode(IAtom index)
          decodes the given word
 java.lang.String decode(int index)
          decodes the given word
 int encode(java.lang.String word)
          encodes the given word
 void genXml(java.io.Writer out)
          generates xml representing the symboltable
 

Method Detail

clear

public void clear()
clears the symboltyble

encode

public int encode(java.lang.String word)
encodes the given word
Parameters:
word -  
Returns:
 

decode

public java.lang.String decode(int index)
decodes the given word
Parameters:
index -  
Returns:
 

decode

public java.lang.String decode(IAtom index)
decodes the given word
Parameters:
index -  
Returns:
 

genXml

public void genXml(java.io.Writer out)
            throws java.io.IOException
generates xml representing the symboltable