Debian Codegraph @

gcc/testsuite/gm2/projects/pim/run/pass/tower/Dungeon.mod

raw
1 MODULE Dungeon ;
2 (* *)
3
4 FROM AdvIntroduction IMPORT StartGame ;
5 FROM SArgs IMPORT GetArg ;
6 FROM AdvParse IMPORT ParseMap ;
7 FROM DynamicStrings IMPORT String, string ;
8 FROM libc IMPORT printf, exit ;
9 FROM Screen IMPORT AssignMapName ;
10
11
12 VAR
13 s: String ;
14 r: INTEGER ;
15 BEGIN
16 IF GetArg(s, 1)
17 THEN
18 r := ParseMap(string(s)) ;
19 IF r=0
20 THEN
21 AssignMapName(s) ;
22 StartGame
23 ELSE
24 exit(r)
25 END
26 ELSE
27 r := printf("usage: dungeon mapfile\n")
28 END
29 END Dungeon.
30 (*
31 * Local variables:
32 * compile-command: "make"
33 * End:
34 *)