forttyp.spad line 430 [edit on github]
Creates and manipulates one global symbol table for FORTRAN code generation, containing details of types, dimensions, and argument lists.
argumentList!(l)
declares that the argument list for the current subprogram in the global symbol table is l
.
argumentList!(f, l)
declares that the argument list for subprogram f
in the global symbol table is l
.
argumentList!(f, l, tab)
declares that the argument list for subprogram f
in symbol table tab is l
.
argumentListOf(f, tab)
returns the argument list of f
clearTheSymbolTable()
clears the current symbol table.
clearTheSymbolTable(x)
removes the symbol x
from the table
currentSubProgram()
returns the name of the current subprogram being processed
declare!(u, t, asp, tab)
declares the parameters u
of subprogram asp
to have type t
in symbol table tab.
declare!(u, t)
declares the parameter u
to have type t
in the current level of the symbol table.
declare!(u, t, asp)
declares the parameter u
to have type t
in asp.
declare!(u, t, asp, tab)
declares the parameter u
of subprogram asp
to have type t
in symbol table tab.
empty()
creates a new, empty symbol table.
endSubProgram()
asserts that we are no longer processing the current subprogram.
newSubProgram(f)
asserts that from now on type declarations are part of subprogram f
.
printHeader()
produces the FORTRAN header for the current subprogram in the global symbol table on the current FORTRAN output stream.
printHeader(f)
produces the FORTRAN header for subprogram f
in the global symbol table on the current FORTRAN output stream.
printHeader(f, tab)
produces the FORTRAN header for subprogram f
in symbol table tab on the current FORTRAN output stream.
printTypes(tab)
produces FORTRAN type declarations from tab
, on the current FORTRAN output stream
returnType!(f, t)
declares that the return type of subprogram f
in the global symbol table is t
.
returnType!(f, t, tab)
declares that the return type of subprogram f
in symbol table tab is t
.
returnType!(t)
declares that the return type of he current subprogram in the global symbol table is t
.
returnTypeOf(f, tab)
returns the type of the object returned by f
showTheSymbolTable()
returns the current symbol table.
symbolTableOf(f, tab)
returns the symbol table of f