symtable.Symbol.get_name()

get_name() Return the symbol’s name.

symtable.Symbol

class symtable.Symbol An entry in a SymbolTable corresponding to an identifier in the source. The constructor is not public. get_name() Return the symbol’s name. is_referenced() Return True if the symbol is used in its block. is_imported() Return True if the symbol is created from an import statement. is_parameter() Return True if the symbol is a parameter. is_global() Return True if the symbol is global. is_declared_global() Return True if the symbol is decl

symtable.Function.get_parameters()

get_parameters() Return a tuple containing names of parameters to this function.

symtable.Function.get_locals()

get_locals() Return a tuple containing names of locals in this function.

symtable.Function.get_globals()

get_globals() Return a tuple containing names of globals in this function.

symtable.Function.get_frees()

get_frees() Return a tuple containing names of free variables in this function.

symtable.Function

class symtable.Function A namespace for a function or method. This class inherits SymbolTable. get_parameters() Return a tuple containing names of parameters to this function. get_locals() Return a tuple containing names of locals in this function. get_globals() Return a tuple containing names of globals in this function. get_frees() Return a tuple containing names of free variables in this function.

symtable.Class.get_methods()

get_methods() Return a tuple containing the names of methods declared in the class.

symtable.Class

class symtable.Class A namespace of a class. This class inherits SymbolTable. get_methods() Return a tuple containing the names of methods declared in the class.

symbol.sym_name

symbol.sym_name Dictionary mapping the numeric values of the constants defined in this module back to name strings, allowing more human-readable representation of parse trees to be generated.