Go to the previous, next section.

Using Variables

A block for an existing variable can be created using the sym function or a block constructor. These functions are used to create accesses to structure, array and pointer variables. Simple scalar variables are accessed by name (of the block defining that variable).

     block(sym_node *)
     block(struct_access *)

     block sym(sym_node * s)  
     block sym(type_node * tp)



     block & ARRAY(block &, 
                   block & ex1 = *NOOP, block & ex2 = *NOOP, 
                   block & ex3 = *NOOP, block & ex4 = *NOOP, 
                   block & ex5 = *NOOP, block & ex6 = *NOOP)

     block & operator[](block &)
     block & operator[](block *)
     block & operator[](int)




     block & field(char *)
     block & field(int i)

     block & addr()
     block & dref()



Go to the previous, next section.