source: CIVL/examples/choose.cvl@ 9ae277d

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 9ae277d was 34760dc, checked in by Stephen Siegel <siegel@…>, 14 years ago

Debugged parser, added examples, for CIVLC.

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

  • Property mode set to 100644
File size: 158 bytes
Line 
1
2int n;
3float x;
4
5void main() {
6l1:
7 _choose {
8 _when (n>2) { x=2; goto l2; }
9 _when (n>1) { x=1; goto l2; }
10 default: {x=0; goto l2; }
11 }
12l2: ;
13}
Note: See TracBrowser for help on using the repository browser.