Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#84 closed enhancement (fixed)

Multiple additions to front end

Reported by: Stephen Siegel Owned by: ywei
Priority: major Milestone:
Component: front Version: 1.0
Keywords: pointer record allocate heap Cc:

Description

Need to add:

pointer types, as in

int* p; /* pointer to int */
real*** q; /* pointer to pointer to pointer to real */
int[]* r; /* pointer to array of int */

user-defined record types, something like

typedef struct {
  int x;
  real[N] y;
} foo;

record navigation expression (f.x)

pointer dereference expression (*) and address-of operator (&)

allocate statements, for example

int* p;
p = allocate(int, 10);

deallocate statements, for example

deallocate(p);

Change History (5)

comment:1 by ywei, 17 years ago

Status: newaccepted

comment:2 by ywei, 16 years ago

Pointer types added to the front-end. Need more test examples.

comment:3 by Stephen Siegel, 16 years ago

Added first simple pointer test. Looks good.

comment:4 by ywei, 16 years ago

Resolution: fixed
Status: acceptedclosed

comment:5 by ywei, 16 years ago

All features added.

Note: See TracTickets for help on using tickets.