Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
SymbolTableFactory Class Reference

Public Member Functions

def __init__
 
def new
 
def __call__
 

Detailed Description

Definition at line 18 of file symtable.py.

Constructor & Destructor Documentation

def __init__ (   self)

Definition at line 19 of file symtable.py.

References SymbolTableFactory.__memo.

19 
20  def __init__(self):

Member Function Documentation

def __call__ (   self,
  table,
  filename 
)

Definition at line 29 of file symtable.py.

References SymbolTableFactory.__memo, and SymbolTableFactory.new().

29 
30  def __call__(self, table, filename):
31  key = table, filename
32  obj = self.__memo.get(key, None)
33  if obj is None:
34  obj = self.__memo[key] = self.new(table, filename)
35  return obj
def new (   self,
  table,
  filename 
)

Definition at line 22 of file symtable.py.

22 
23  def new(self, table, filename):
24  if table.type == _symtable.TYPE_FUNCTION:
25  return Function(table, filename)
26  if table.type == _symtable.TYPE_CLASS:
27  return Class(table, filename)
28  return SymbolTable(table, filename)

The documentation for this class was generated from the following file: