Go to the previous, next section.

Type Creation

The input to the builder type system is a C-like'type definition string. The builder parses this string and creates the SUIF type structure. For example, the following will create a SUIF type structure for a character string.
      type_node * tn = block::parse_type("char *");


Since SUIF types are associated with symbol tables, the type structure created by the builder can be optionally installed in any symbol table as shown below. The default is the procedure symbol table.

      base_symtab * symtab;
      type_node * tn = block::parse_type(symtab, "char *");



Go to the previous, next section.