Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

MOO

MOO - Programming language

< >

MOO, aka MUD, object-oriented, is a programming language created in 1993.

#941on PLDB 30Years Old 80Users
0Books 0Papers 83Repos

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.. Read more on Wikipedia...


Example from the web:
@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,"."); .
Example from hello-world:
@program hello:run player:tell("Hello World"); .
"Hello World in MOO"; player.location:announce_all("Hello, world!");
Example from Wikipedia:
@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 .

Language features

Feature Supported Token Example
Strings "
"Hello world"
Print() Debugging player:tell
Comments
Semantic Indentation X
bog.html · moo.html · dak.html

View source

- Build the next great programming language · Search · Day 213 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com