Complex string format, Introduction, Field-value pair components – Grass Valley K2 Edge Protocol Manual v1.0 User Manual

Page 50

Advertising
background image

K2 Edge Protocol Manual – document version 1.0 – Page 50

8. Complex String Format

8.1. Introduction

A complex string is a text string defining zero or more field-value pairs in a simple format.

Example:

{ file=a000123.avf; block-count=42; }

A complex string always starts with an open curly-brace character and ends with a close curly brace

character. In between the braces zero or more field-value pairs are defined, each of them terminated with

a semi-colon.

The term complex refers to the complex data type. A complex string can hold several values as apposed

to a simple data type, that can only hold one.

8.2. Field-value pair components

A field-value pair consists of:

1. the field-identifier;

2. an equals sign;

3. the optional field-value;

4. a semi-colon;

5. optional whitespace.

This is how the complex string format looks in pseudo grammar:

complex-string

:

{ whitespace

opt

field-value-seq

whitespace

opt

}

field-value-seq

:

field-value-pair

opt

field-value-seq

field-value-pair

field-value-pair

:

field-identifier

=field-value

opt

; whitespace

opt

field-identifier

:

[a-z][a-z0-9-]*

field-value

:

[a-zA-Z0-9 -\;]*

#qot(...)toq#

#u08(...)80u#

complex-string

A complex string contains zero or more field-value pairs between curly braces. Every field-value pair is

terminated by a semicolon.

Whitespaces between field-value pairs are allowed and are ignored. Whitespaces in a field-value item are

allowed and included as part of value.

Advertising