View Categories

s.syntax.group-sequence

1 min read

Table of Contents

Syntax #

s.syntax.group-sequence

Purpose #

The s.syntax.group-sequence annotation is used to tag a span element as being a specific sequence of related syntax components within a syntax diagram. These components act as a single unit. A group sequence is used to present a behaviour or process within the logic of the syntax diagram.

 

This annotation also automatically creates a <syntaxdiagram> tag to contain the <groupseq> tags. This annotation can be applied at the span or paragraph scopes.

 

See s.syntax.group-composite for more information.

Example #

The following is an example of a time when you might want to use the annotation

 

The following is an example of a rule that will apply the annotation

The following is the DITA XML output for the rule:

<syntaxdiagram>

<groupseq>

<title>>Adding </title>

<kwd>2</kwd>

<oper>*</oper>

<sep>(</sep>

<kwd>3</kwd>

<oper>+</oper>

<var>user_input</var>

<sep>)</sep>

<delim>=</delim>

<kwd>system_output</kwd>

</groupseq>

</syntaxdiagram></p>