RCTSL:Types of keywords

From Olympus
(Difference between revisions)
Jump to: navigation, search
m
 
Line 2: Line 2:
  
 
;agent declaration : construct embedded in a [[RCTSL:DECLARE_AGENTS|DECLARE_AGENTS]] block
 
;agent declaration : construct embedded in a [[RCTSL:DECLARE_AGENTS|DECLARE_AGENTS]] block
;agent definition : top level construct defines an agent of the task tree
+
;agent definition : top level construct that defines an agent of the task tree
 
;concept definition: construct embedded in a [[RCTSL:DEFINE_CONCEPTS|DEFINE_CONCEPTS]] block
 
;concept definition: construct embedded in a [[RCTSL:DEFINE_CONCEPTS|DEFINE_CONCEPTS]] block
 
;concept type definition: top level construct that defines a custom concept type
 
;concept type definition: top level construct that defines a custom concept type
 
;concept item definition: construct embedded in a ''concept item definition block''
 
;concept item definition: construct embedded in a ''concept item definition block''
;concept item definition block: construct embedded in a ''concept type definition''. At this point, the only keyword of this type is [[RCTSL:ITEMS|ITEMS]].
+
;concept item definition block: construct embedded in a ''concept type definition''. The only keyword of this type is [[RCTSL:ITEMS|ITEMS]].
;directive : construct embedded in an ''agent definition''. Some directives can only be used in certain agent types. When this is the case, they will appear in the '''Allowed in''' section of the directive reference.
+
;directive : construct embedded in an ''agent definition''. Some directives can only be used in certain agent types. When this is the case, these agent types will appear in the '''Allowed in''' section of the directive reference.
;macro : construct to be used with C++ code (e.g. in preconditions or in code blocks as in [[RCTSL:ON_COMPLETION|ON_COMPLETION]])
+
;macro : construct to be used within C++ code (e.g. in preconditions or in code blocks like [[RCTSL:ON_COMPLETION|ON_COMPLETION]])
 
;subagent definition: construct embedded in a [[RCTSL:DEFINE_SUBAGENTS|DEFINE_SUBAGENTS]] block
 
;subagent definition: construct embedded in a [[RCTSL:DEFINE_SUBAGENTS|DEFINE_SUBAGENTS]] block
 
;top level : construct not be embedded in any other block
 
;top level : construct not be embedded in any other block

Latest revision as of 11:57, November 22, 2007

There are many types of keywords in RCTSL. Each type can only be used in specific parts of the task specification. For each keyword, the reference page has a Type line that gives its type. The currently existing types are:

agent declaration 
construct embedded in a DECLARE_AGENTS block
agent definition 
top level construct that defines an agent of the task tree
concept definition
construct embedded in a DEFINE_CONCEPTS block
concept type definition
top level construct that defines a custom concept type
concept item definition
construct embedded in a concept item definition block
concept item definition block
construct embedded in a concept type definition. The only keyword of this type is ITEMS.
directive 
construct embedded in an agent definition. Some directives can only be used in certain agent types. When this is the case, these agent types will appear in the Allowed in section of the directive reference.
macro 
construct to be used within C++ code (e.g. in preconditions or in code blocks like ON_COMPLETION)
subagent definition
construct embedded in a DEFINE_SUBAGENTS block
top level 
construct not be embedded in any other block

RavenClaw Task Specification Language Reference

Personal tools