Debian Codegraph @

terps/tads/tads3/test/data/propdecl.t

raw
1 #include "tads.h"
2
3 /* define some properties - do two in one list to check comma handling */
4 property prop3, prop4;
5
6 /* do one in a list by itself to check that syntax as well */
7 property prop5;
8
9 obj1: object
10 prop1 = 'this is prop1'
11
12 test()
13 {
14 "calling prop1: <<prop1>>\n";
15 "calling prop2: <<prop2>>\n";
16 "calling prop3: <<prop3>>\n";
17 }
18 ;
19
20 main(args)
21 {
22 obj1.test();
23 obj1.prop6();
24 }