File: ContErr1.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 (50 lines) | stat: -rw-r--r-- 1,136 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
\  Another test of cunningly contrived Erroneous Control Constructs.
\      This one doesn't pass the "Old" tokenizer, even though
\      it doesn't have the check for Control-Structure matching,
\      because the way it does its   case .. of .. endof ... endcase
\      is completely incompatible with the way it does its  if ... then 
\     

\  Updated Wed, 04 May 2005 at 16:26 by David L. Paktor

fcode-version2

headers


\  We can't fake this to the "Old" tokenizer, because
\      it does its   case .. of .. endof ... endcase
\      in a way that's completely incompatible with
\      the way it does its  if ... then
\  So just test this with the "New".

: garfield
    ." if" if
    ." begin" begin
	." Question-Leave?" ?leave
	." 0 if unloop exit then"  0 if unloop exit then
        ." Would you be leave..."  leave
    ." loop?"  loop
   ." Done with garfield"
;

: jon
   ." begin" begin
   ." if" if
   ." endof"  endof
   ." again" again
   ." then" then
   ." ouch"
;

: nermal
   ." begin noop" begin noop
   ." if" if
   ." endof"  endof
   ." loop"  loop
;

: liz-the-vet
   ." No concluding semicolon"

fcode-end