biometrics / likely

A compiler intermediate representation for image recognition and heterogeneous computing.
http://www.liblikely.org
Other
78 stars 11 forks source link

Support Structs #58

Open jklontz opened 8 years ago

jklontz commented 8 years ago

Something along the lines of:

; Global scope
Point := (struct (int x) (int y))

; Local scope
{
  pOrigin := (Point 0 0) ; Define a new point on the stack
  (pOrigin x) :<- (+ (pOrigin x) 1) ; increment x
  (pOrigin y) :<- (+ (pOrigin y) 1) ; increment y
}