File: control-flow-statements.dart.faceup

package info (click to toggle)
emacs-dart-mode 1.0.7%2Bgit20250811.edb45cb-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 656 kB
  • sloc: lisp: 613; makefile: 29
file content (17 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
«k:if» (year >= «c:2001») {
  print(«s:'21st century'»);
} «k:else» «k:if» (year >= «c:1901») {
  print(«s:'20th century'»);
}

«k:for» («k:var» «v:object» «k:in» flybyObjects) {
  print(object);
}

«k:for» («t:int» «v:month» = «c:1»; month <= «c:12»; month++) {
  print(month);
}

«k:while» (year < «c:2016») {
  year += «c:1»;
}