Difference between revisions of "PXV:CAB:SubnodeIdentification"

From PDF XChange PDF SDK
Jump to: navigation, search
(Created page with "==CAB subnode identification== <br/><br/> BNF grammar definitions: <code> <nowiki> id ::= ("" | <array-index> ".") <regular_id> array_index ::= "[" <integer> "]" <opt-arra...")
 
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<code>
 
<code>
 
  <nowiki>
 
  <nowiki>
  id ::= ("" | <array-index> ".") <regular_id>  
+
  id ::= <regular-id> | (<array-index> ("" |  "." <regular-id> ))
  array_index ::= "[" <integer> "]" <opt-array-index>
+
  array-index ::= "[" <integer> "]" <opt-array-index>
  opt-array-index ::= <array_index> | ""
+
  opt-array-index ::= <array-index> | ""
  regular_id ::= <dic-name><opt-array-index> ( "" | "." <regular_id> )
+
  regular-id ::= <dic-name><opt-array-index> ( "" | "." <regular-id> )
 
  dic-name ::= <a sequence of any character except of ".">
 
  dic-name ::= <a sequence of any character except of ".">
 
</nowiki>
 
</nowiki>
Line 17: Line 17:
 
Additionally a generic multi-level subnode identification is supported through a string of <code><nowiki><id></nowiki></code> syntax.<br/>
 
Additionally a generic multi-level subnode identification is supported through a string of <code><nowiki><id></nowiki></code> syntax.<br/>
 
Examples:<br/>
 
Examples:<br/>
<code>"name1.name2[0][1].name3"<br/>
+
<code>
"[0].name4"</code>
+
"name1" <br/>
 +
"[0]" <br/>
 +
"name1.name2[0][1].name3"<br/>
 +
"[0][1].name4[1]" <br/>
 +
</code>

Latest revision as of 06:08, 15 June 2015

CAB subnode identification



BNF grammar definitions:

 id ::= <regular-id> | (<array-index> ("" |  "." <regular-id> ))
 array-index ::= "[" <integer> "]" <opt-array-index>
 opt-array-index ::= <array-index> | ""
 regular-id ::= <dic-name><opt-array-index> ( "" | "." <regular-id> )
 dic-name ::= <a sequence of any character except of ".">


A subnode of CAB dictionary is identified by a string of <dic-name> syntax. A subnode of CAB array is identified by an integer index.

Additionally a generic multi-level subnode identification is supported through a string of <id> syntax.
Examples:
"name1"
"[0]"
"name1.name2[0][1].name3"
"[0][1].name4[1]"