Declarations

Declarations are parts of the program that tell the compiler things, but don’t actually do anything. In the following code snippet

verb "xyzzy"
   *                            DoXyzzy

attribute painted
property color
object table "wooden table"
{
   is painted
   color "viridian"
}

routine DoXyzzy
{
   "Nothing happens."
}

everything except the routine DoXyzzy and the code that follows it, are all declarations. They simply inform the compiler about the data used by the program or define things. They do not actually perform any actions. The following language commands in Hugo are declarations:

See Also: code, keywords