-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
moo.scroll
82 lines (71 loc) · 2.02 KB
/
moo.scroll
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
import ../code/conceptPage.scroll
id moo
name MOO
appeared 1993
tags pl
standsFor MUD, object-oriented
fileType text
rosettaCode http://www.rosettacode.org/wiki/Category:MOO
centralPackageRepositoryCount 0
country Canada
originCommunity University of Waterloo
helloWorldCollection MUD%2C object-oriented
"Hello World in MOO";
player.location:announce_all("Hello, world!");
example
@program toy:wind
this.wound = this.wound + 2;
player:tell("You wind up the ", this.name,".");
player.location:announce(player.name, " winds up the ", this.name,".");
.
leachim6 Moo
filepath m/Moo.moo
fileExtensions moo
example
@program hello:run
player:tell("Hello World");
.
printToken player:tell
stringToken "
hasComments true
hasPrintDebugging true
hasSemanticIndentation false
hasStrings true
"Hello world"
wikipedia https://en.wikipedia.org/wiki/MOO_(programming_language)
example
@program toy:wind
if (this.location == player)
if (this.wound < this.maximum)
this.wound = this.wound + 2;
player:tell("You wind up the ", this.name,".");
player.location:announce(player.name, " winds up the ", this.name,".");
if (this.wound >= this.maximum)
player:tell("The knob comes to a stop while winding.");
endif
else
player:tell("The ",this.name," is already fully wound.");
endif
else
player:tell("You have to be holding the ", this.name,".");
endif
.
related scheme smalltalk self c ada muf lpc pike linden-scripting-language
summary The MOO programming language is a relatively simple programming language used to support the MOO Server. It is dynamically typed and uses a prototype-based object-oriented system, with syntax roughly derived from the Algol school of programming languages.
pageId 20178
dailyPageViews 12
created 2001
backlinksCount 67
revisionCount 119
appeared 1993
tiobe MOO
githubBigQuery Moocode
repos 23
users 23
githubLanguage Moocode
fileExtensions moo
trendingProjectsCount 0
type programming
aceMode text
tmScope none
repos 83