File: simple_switch.vpp

package info (click to toggle)
vbpp 1.1.0-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 484 kB
  • ctags: 277
  • sloc: sh: 2,795; ansic: 1,474; lex: 1,097; yacc: 511; makefile: 157
file content (16 lines) | stat: -rw-r--r-- 172 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
`for (i=0; i<5; i++)
`switch(i)
`case 0
print out 0
`breaksw
`case 1
print out 1
`breaksw
`case 2
print out 2
`breaksw
`default
print out twice
`breaksw
`endswitch
`endfor