GITLAB

Salvador Abreu / sim2c

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • sim2c
  • examples
  • ex-trab-2
  • class.vs
  • f2c4dc81   added most of the stuff Browse Code ยป
    Salvador Abreu
    2014-03-06 09:18:37 +0000  
class.vs 174 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14
foo = map () -> () [
	r : { i, j: int };
	a : [10] { i, j: int };

	r.i := 10;
	r.j := 20;
	a[1].i := 30;
	a[2].j := 40;

	x := r.i;
	x := r.j;
	x := a[1].i;
	x := a[2].j;
]