tmud-2.10.1/benchmark/
tmud-2.10.1/cmd/
tmud-2.10.1/cmd/objects/
tmud-2.10.1/cmd/tiny/
tmud-2.10.1/doc/classes/SQLite/
tmud-2.10.1/doc/classes/SQLite3/
tmud-2.10.1/doc/classes/TernaryTrie/
tmud-2.10.1/doc/files/cmd/objects/
tmud-2.10.1/doc/files/cmd/tiny/
tmud-2.10.1/doc/files/lib/
tmud-2.10.1/doc/files/lib/engine/
tmud-2.10.1/doc/files/lib/farts/
tmud-2.10.1/farts/
tmud-2.10.1/lib/
tmud-2.10.1/lib/core/
tmud-2.10.1/lib/engine/
tmud-2.10.1/lib/farts/
tmud-2.10.1/logs/
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>File: farts.grammar</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



  <div id="fileHeader">
    <h1>farts.grammar</h1>
    <table class="header-table">
    <tr class="top-aligned-row">
      <td><strong>Path:</strong></td>
      <td>farts.grammar
      </td>
    </tr>
    <tr class="top-aligned-row">
      <td><strong>Last Update:</strong></td>
      <td>Tue Sep 13 11:33:35 -0400 2005</td>
    </tr>
    </table>
  </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">
    <div id="diagram">
      <map id="map" name="map">
</map>
<img src="../dot/f_0.png" usemap="#map" border="0" alt="dot/f_0.png">
    </div>

    <div id="description">
      <h1>Functional Automated Response Triggers System</h1>
<p>
Programs are stored in the farts directory under the name
&lt;program_name.fart&gt;
</p>
<p>
<a href="../classes/Command.html">Command</a> to manipulate triggers online
is @fart:
</p>
<ul>
<li>Syntax:

<pre>
 @fart add #&lt;oid&gt; &lt;progname&gt; &lt;eventtype&gt;
 @fart del #&lt;oid&gt; &lt;eventtype&gt;
 @fart show #&lt;oid&gt;
</pre>
</li>
</ul>
<h2>Events</h2>
<p>
The following event types are available:
</p>
<ul>
<li>describe

</li>
<li>show

</li>
<li>get

</li>
<li>drop

</li>
<li>describe_exits

</li>
<li>leave

</li>
<li>arrive

</li>
<li>timer

</li>
</ul>
<h2>Grammar</h2>
<pre>
        program   : stmts

        stmts     :
                  | stmts stmt

        stmt      : expr
                  | command
                  | if
                  | END
                  | END TRUE
                  | END FALSE
                  | '#' COMMENT

        if        : IF expr stmts else ENDIF

        else      : ELSE stmts
                  | command   : ID
                  | ID STRING

        expr      : '!' expr
                  | expr '==' expr
                  | expr '!=' expr
                  | expr '&gt;' expr
                  | expr '&gt;=' expr
                  | expr '&lt;' expr
                  | expr '&lt;=' expr
                  | expr &lt;AND|'&amp;&amp;'&gt; expr
                  | expr &lt;OR|'||'&gt; expr
                  | '(' expr ')'
                  | '-' expr
                  | function
                  | atom

        atom      : NUMBER
                  | FLOAT
                  | STRING
                  | ACTOR
                  | ACTOR '.' ID
                  | THIS
                  | THIS '.' ID
                  | ARGS
                  | ARGS '.' ID

        function  : ID '(' args ')'

        args      :
                  | expr
                  | args ',' expr
</pre>

    </div>


   </div>


  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>