Bases: object
Represents the symbols (variables) and their data types in a lexical scope.
Parameters: |
|
---|
All symbols (and their types) that are defined in this scope and all parents.
Return type: | dict from symbol name to titus.datatype.AvroType |
---|---|
Returns: | symbols and their types |
Create a blank symbol table.
Return type: | titus.pfaast.SymbolTable |
---|---|
Returns: | a symbol table containing nothing |
Get a cell’s type from this scope or a parent’s.
Parameters: | name (string) – name of the cell |
---|---|
Return type: | titus.datatype.AvroType or None |
Returns: | the cell’s type if defined, None otherwise |
Get a symbol’s type from this scope or a parent’s.
Parameters: | name (string) – name of the symbol |
---|---|
Return type: | titus.datatype.AvroType or None |
Returns: | the symbol’s type if defined, None otherwise |
Get a symbol’s type specifically from a parent’s scope, not this one.
Parameters: | name (string) – name of the symbol |
---|---|
Return type: | titus.datatype.AvroType or None |
Returns: | the symbol’s type if defined in a parent’s scope, None otherwise |
Get a symbol’s type specifically from this scope.
Parameters: | name (string) – name of the symbol |
---|---|
Return type: | titus.datatype.AvroType or None |
Returns: | the symbol’s type if defined in this scope, None otherwise |
All symbols (and their types) that are defined in this scope (not in any parents).
Return type: | dict from symbol name to titus.datatype.AvroType |
---|---|
Returns: | symbols and their types |
Create a new scope with this as parent.
Parameters: | |
---|---|
Return type: | titus.pfaast.SymbolTable |
Returns: | a new scope, linked to this one |
Get a pool’s type from this scope or a parent’s.
Parameters: | name (string) – name of the pool |
---|---|
Return type: | titus.datatype.AvroType or None |
Returns: | the pool’s type if defined, None otherwise |
Create or overwrite a symbol’s type in the table.
Parameters: |
|
---|---|
Return type: | None |
Returns: | nothing; changes table in-place |