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 oflto be of typet
- declare!: (Symbol, FortranType, %) -> FortranType
declare!(u, t, tab)creates a new entry in tab, declaringuto be of typet
- empty: () -> %
empty()returns a new, empty symbol table
- fortranTypeOf: (Symbol, %) -> FortranType
fortranTypeOf(u, tab)returns the type ofuin 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 typetin tab