znmud-0.0.1/benchmark/
znmud-0.0.1/cmd/
znmud-0.0.1/cmd/emotes/
znmud-0.0.1/cmd/objects/
znmud-0.0.1/cmd/tiny/
znmud-0.0.1/doc/
znmud-0.0.1/farts/
znmud-0.0.1/lib/
znmud-0.0.1/lib/combat/
znmud-0.0.1/lib/core/bodytypes/
znmud-0.0.1/lib/engine/
znmud-0.0.1/lib/farts/
znmud-0.0.1/logs/
= Functional Automated Response Triggers System

Programs are stored in the farts directory under the name <program_name.fart>

Command to manipulate triggers online is @fart:

-  Syntax:
    @fart add #<oid> <progname> <eventtype>
    @fart del #<oid> <eventtype>
    @fart show #<oid>
    
== Events
 
The following event types are available:

- describe
- show
- get
- drop
- describe_exits
- leave
- arrive
- timer

== Grammar

	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 '>' expr
		  | expr '>=' expr
		  | expr '<' expr
		  | expr '<=' expr
		  | expr <AND|'&&'> expr
		  | expr <OR|'||'> 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