-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathfoo.m
executable file
·70 lines (62 loc) · 1.43 KB
/
foo.m
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#! xbigforth
\ automatic generated code
\ do not edit
also editor also minos also forth
component class foo
public:
( [varstart] ) ( [varend] )
how:
: params DF[ 0 ]DF X" hrtsizer" ;
class;
component class bar
public:
( [varstart] ) ( [varend] )
how:
: params DF[ 0 ]DF X" hxrtsizer" ;
class;
component class zap
public:
( [varstart] ) ( [varend] )
how:
: params DF[ 0 ]DF X" hsizer" ;
class;
zap implements
( [methodstart] ) ( [methodend] )
: widget ( [dumpstart] )
^^ S[ ]S ( MINOS ) X" String" button new
hsizer new
#2 hasbox new
^^ S[ ]S ( MINOS ) X" String" button new
#2 habox new
#1 vabox new
( [dumpend] ) ;
class;
bar implements
( [methodstart] ) ( [methodend] )
: widget ( [dumpstart] )
^^ S[ ]S ( MINOS ) X" String" button new
hxrtsizer new
#2 hasbox new
^^ S[ ]S ( MINOS ) X" String" button new
#2 habox new
#1 vabox new
( [dumpend] ) ;
class;
foo implements
( [methodstart] ) ( [methodend] )
: widget ( [dumpstart] )
^^ S[ ]S ( MINOS ) X" String" button new
hrtsizer new
#2 hasbox new
^^ S[ ]S ( MINOS ) X" String" button new
#2 habox new
#1 vabox new
( [dumpend] ) ;
class;
: main
zap open-app
bar open-app
foo open-app
event-loop bye ;
script? [IF] main [THEN]
previous previous previous