File: ExtCont.fth

package info (click to toggle)
fcode-utils 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 46,768 kB
  • sloc: ansic: 9,717; csh: 241; makefile: 129; sh: 17
file content (32 lines) | stat: -rw-r--r-- 513 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\  Test extended-control constructs

\  Updated Tue, 03 May 2005 at 12:40 by David L. Paktor

fcode-version2

headers

\  First, something ordinary
: goose
   ." begin" begin
   ." 4 until" 4 until
   ." Done with goose"
 ;
 : caboose
    ." begin" begin
    ." 5 while" 5 while
    ." repeat" repeat
   ." Done with caboose"
;

: fusbat
   ." begin" begin
   ." 1 while" 1 while
   ." 2 while" 2 while
   ." 3 until" 3 until
   ." 2 then" then ( 2 )
   ." 1 then" then ( 1 )
   ." Done with fusbat"
;

fcode-end