SymbolTableΒΆ
forttyp.spad line 250 [edit on github]
Create and manipulate a symbol table for generated FORTRAN code
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- coerce: % -> Table(Symbol, FortranType)
coerce(x)
returns a table view ofx
- declare!: (List Symbol, FortranType, %) -> FortranType
declare!(l, t, tab)
creates new entrys in tab, declaring each ofl
to be of typet
- declare!: (Symbol, FortranType, %) -> FortranType
declare!(u, t, tab)
creates a new entry in tab, declaringu
to be of typet
- empty: () -> %
empty()
returns a new, empty symbol table
- fortranTypeOf: (Symbol, %) -> FortranType
fortranTypeOf(u, tab)
returns the type ofu
in tab
- newTypeLists: % -> SExpression
newTypeLists(x)
undocumented
- printTypes: % -> Void
printTypes(tab)
produces FORTRAN type declarations fromtab
, on the current FORTRAN output stream
- symbolTable: List Record(key: Symbol, entry: FortranType) -> %
symbolTable(l)
creates a symbol table from the elements ofl
.
- typeList: (FortranScalarType, %) -> List Union(name: Symbol, bounds: List Union(S: Symbol, P: Polynomial Integer))
typeList(t, tab)
returns a list of all the objects of typet
in tab