source: CIVL/examples/languageFeatures/civlfor.cvl@ 1dd9245

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 1dd9245 was 1dd9245, checked in by Manchun Zheng <zmanchun@…>, 12 years ago

added CIVL translation of RegularRange, Domain literals, civl for statement, etc.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1182 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 179 bytes
Line 
1#include <civlc.h>
2
3void main(){
4 $range r1 = 1 .. 5;
5 $range r2 = 0 .. 4#-2;
6 $domain(2) dom = ($domain){r1, r2};
7 int sum = 0;
8
9 $for(int i,j : dom){
10 sum += 1;
11 }
12}
Note: See TracBrowser for help on using the repository browser.