-
Notifications
You must be signed in to change notification settings - Fork 0
/
muf3.html
88 lines (74 loc) · 2.18 KB
/
muf3.html
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<html>
<head>
<title>The MUCK Manual: Overview: MUF (3)</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<a href="muf2.html">prev</a>|
<a href="toc.html">toc</a>|
<a href="muf4.html">next</a>
</center>
<table>
<tr>
<td width="20%"> </tc>
<td>
<!-- BODY CONTENT HERE -->
<p><b>3.2 Overview: MUF (cont'd)</b></p>
<p><b>A First Program:</b></p>
<p>Let's make a "Hello, world!" program, to practice with the mechanics
of making a program, and because it's something of a rite of
passage.</p>
<p>Make a program. Let's call it tinker.muf, because we'll be tinkering
around with it. Type <code>@prog tinker.muf.</code> The program
is created and you go into the editor. At this point, either type
<code>i</code> to enter `insert' mode and type the code below, or type
<code>q</code> to get our of the editor and quote/paste it into the
<code>MUCK</code> from your host computer, then compile the program and
exit the editor (type <code>c,</code> then <code>q</code> while in the
editor).</p>
<p><code>
====================================<br>
> @prog tinker.muf<br>
Program tinker.muf created with number 1230.<br>
Entering editor.<br>
> i<br>
Entering insert mode.<br>
> (tinker.muf. A practice program)<br>
> <br>
> : main<br>
> me @ "Hello, world!" notify<br>
> ;<br>
> .<br>
> c<br>
Compiler done.<br>
> q<br>
Editor exited.<br>
====================================<br>
</code></p>
<p>Create an action attached to yourself and linked to the program.</p>
<p><code>
====================================<br>
> @act test = me<br>
Action created with number #1231 and attached.<br>
> @link test = tinker.muf<br>
Linked to tinker.muf(#1230FM1)<br>
====================================<br>
</code></p>
<p>Check your program by typing `test'.</p>
<p><code>
====================================<br>
> test<br>
Hello, world!<br>
====================================<br>
</code></p>
<center>
<a href="muf2.html">prev</a>|
<a href="toc.html">toc</a>|
<a href="#top">top</a>|
<a href="muf4.html">next</a>
</center>
</td>
<td width="20%"> </tc>
</table>
</body>
</html>