Create a sequence identifier hierarchical structure.
Write the contents of each sequence identifier.
Set lower sequences and variable identifiers
This will generate the pattern configuration.
The figure below shows how to create a sequence identifier under the file identifier $File[1].
(1) Pattern configuration
Set $Seq[1] and then $Seq[2].
Set $Seq[3] below $Seq[1].
Set $Seq[5] below $Seq[3].
Set $Seq[4] after $Seq[2].
(2) Pattern analysis
The order of pattern analysis is:
1. $Seq[1] (analysis) (解析)
2. $Seq[3] (analysis if $Seq[3] is set to the content of $Seq[1])
3. $Seq[5] (analysis if $Seq[5] is set to the content of $Seq[3])
4. $Seq[2] (analysis) (解析)
5. $Seq[4] (analysis)
1. Parsing $Seq[1]
The variable identifier $Var[28] is a loop.
$Var[28] is a variable with the element name --any-- of Lclass
Repeat the number of times the data in $Var[28] of the instance is found.
Since there is $Seq[3], the contents of $Seq[3] are expanded here.
2.Parsing $Seq[3]
$Var[39] is an S class with a fixed element name, so there is no loop.
The contents of $Seq[3] are processed only once.
$Seq[3] is expanded to the contents of the upper $Seq[1].
Since there is $Seq[5], the contents of $Seq[5] are expanded here.
3. Parsing $Seq[5]
The variable identifiers $Var[57], $Var[58], and $Var[59] are loops.
Repeat for the number of instances $Var[57], $Var[58], and $Var[59].
$Var[57], $Var[58], and $Var[59] are three state transition keywords.
4. Parsing $Seq[2]
$Seq[2] has no subsequence and no variable identifiers.
The text of $Seq[2] is appended after the expansion of $Seq[1].
5. Parsing $Seq[4]
$Seq[4] has no subsequence and no variable identifiers,
the text of $Seq[4] is appended after the expansion of $Seq[2].