ADBM and BADB Syntax for Patterns

The layout of commands to define a pattern is

DEFINE "group-name" [pattern-number]

	  MESSAGE "message-text"

	  [TYPE [message-type] [sender-type] [TEST] [VARIABLE-LENGTH] ]

 	  [DELIMITERS delimiter-spec]

	  [INSTANCE [instance-type]]

	  [TOKEN [token-type] number ["token-text"] ]...

	  [CONSTRAINT expression ]...

	  [PRIORITY integer]

	  [ACTION operation-mode action-type "action-text"

	     [WAIT nn [<SECONDS> | MINUTES] ] ...

	  [CREATE variable-group-name:instance-name] ...

	  [DESTROY variable-group-name:instance-name] ...

	  [SET target-variable = variable-expression] ...

 	  [RESET target-variable] ...

	  [IF expression

		  [action]...

		  [ELSEIF expression

		  [action]... ] ...

			[ELSE

				[action]... ]

		ENDIF] ...

  END

The command to delete a pattern or group of patterns is:

REMOVE "group-name" {pattern-number | ALL}