| class GLOBAL_TBL |
|---|
| **** | A table of global variables for the Sather compiler. |
| attr prog:PROG; |
|---|
| **** | The program this is for. |
| attr tbl:FMAP{$TP,FMAP{IDENT,AM_GLOBAL_EXPR}}; |
|---|
| **** | Maps from types to hmaps from idents to globals. |
| attr top_sort:FLIST{AM_GLOBAL_EXPR}; |
|---|
| **** | List of globals in an order they can be initialized. |
| attr prog:PROG; |
|---|
| **** | The program this is for. |
| attr tbl:FMAP{$TP,FMAP{IDENT,AM_GLOBAL_EXPR}}; |
|---|
| **** | Maps from types to hmaps from idents to globals. |
| attr top_sort:FLIST{AM_GLOBAL_EXPR}; |
|---|
| **** | List of globals in an order they can be initialized. |
| create(p:PROG):SAME |
|---|
| **** | A new table for the program `p'. |
| get(name:IDENT, tp:$TP):AM_GLOBAL_EXPR |
|---|
| **** | Retrieve the global with the name `name' in the type `tp' if present, otherwise return void. |
| insert(g:AM_GLOBAL_EXPR) |
|---|
| **** | Insert the global `g' into the table. |