Skip to content

Commit

Permalink
bandwidth-file: Add HeaderLine non-terminal
Browse files Browse the repository at this point in the history
To make more clear that header lines do not contain spaces and simplify
parsers.
This does not change the format.

Closes: #30311
  • Loading branch information
juga0 authored and nmathewson committed May 13, 2019
1 parent e1ad77e commit cfe12e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bandwidth-file-spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@

Line ::= ArgumentChar* NL
RelayLine ::= KeyValue (SP KeyValue)* NL
HeaderLine ::= KeyValue NL
KeyValue ::= Keyword "=" Value
Value ::= ArgumentCharValue+
ArgumentCharValue ::= any printing ASCII character except NL and SP.
Expand Down Expand Up @@ -141,6 +142,14 @@

2.2. Header List format

It consists of a Timestamp line and zero or more HeaderLines.

All the header lines MUST conform to the HeaderLine format, except
the first Timestamp line.

The Timestamp line is not a HeaderLine to keep compatibility with
the legacy Bandwidth File format.

Some header Lines MUST appear in specific positions, as documented
below. All other Lines can appear in any order.

Expand Down

0 comments on commit cfe12e6

Please sign in to comment.