THPDFContentSyntaxNodeKind Type

Classifies a node in the token-preserving content-stream syntax tree

Declaration

THPDFContentSyntaxNodeKind= (
  csnkRoot,
  csnkOperation,
  csnkOperand,
  csnkArray,
  csnkDictionary,
  csnkProcedure,
  csnkInlineImage,
  csnkMalformed
);

Unit

HPDFContentStream

Values

ValuePurpose
csnkRootSynthetic tree root that parents every top-level operation
csnkOperationOne operator together with the operands that precede it
csnkOperandA single operand under an operation, array, or dictionary
csnkArrayGrouping node for a bracketed operand array, closed by the matching array-end lexeme
csnkDictionaryGrouping node for an inline dictionary operand, closed by the matching dictionary-end lexeme
csnkProcedureGrouping node for the legacy procedure-set braces, nesting the operations inside
csnkInlineImageInline image block spanning its BI dictionary, image data, and EI terminator
csnkMalformedByte range that broke the grammar, kept in the tree so token-preserving edits never lose source bytes

Usage notes

Related APIs