EBNF grammar is used to describe the account-log file. EBNF has the following meta-symbols:
() brackets to indicate once (used to group alternatives together)
[] brackets to indicate zero or once
{} brackets to indicate zero or more
| to separate alternatives
+ plus sign indicates one or more
<> brackets to indicate a non terminal
The EBNF syntax has terminals and non-terminals. An example of a nonterminal is <digit>, representing the digits 0 to 9. The digits 0 to 9 are the terminals. The non-terminal <digit> can be used in syntax descriptions instead of the terminals. This makes the description more structured and better readable.
Non-terminal |
Description |
---|---|
<digit> |
( 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9). |
<yyyy> |
<digit><digit><digit><digit> The year, for example, “2000” or “2017”. |
<mm> |
<digit><digit> The month. Range 01..12. For example “01” or “12”. |
<dd> |
<digit><digit> The day of the month. Range 01..31. For example “03” or “28”. |
<date> |
<yyyy><dash><mm><dash><dd> |
<hh> |
Numeric string of 2 digits with leading zeros in the range 00..23 expressing the hour. |
<min> |
Numeric string of 2 digits with leading zeros in the range 00..59 expressing the minutes. |
<ss> |
Numeric string of 2 digits with leading zeros in the range 00..59 expressing the seconds. |
<time> |
<hh><colon><mm><colon><ss> |
<paperid> |
( 1 | 2 | 3 | 4 | 5 | 6 ) Number of different papers (e.g different format, type or weight) used in the job. |
<CR> |
A carriage return character. |
<LF> |
A line feed character. |
<space> |
A space character |
<tab> |
A tab character |
<comma> |
A comma character "," |
<semicolon> |
A semicolon character ";" |
<colon> |
A colon character ":" |
<dash> |
A dash character "-" |
<doublequote> |
A double quote character " |
<num> |
<digit>[<digit>][<digit>][<digit>][<digit>][<digit>][<digit>][<digit>][<digit>] Numeric string of up to 9 digits; leading zeroes are not allowed. |
<char> |
Character. |
<str40> |
<char>+ String of up to 40 characters. |
<str255> |
<char>+ String of up to 255 characters. |
<whitespace> |
{<space> | <tab>} |
<duration> |
<digit><digit><colon><mm><colon><ss> |
<mid> |
<digit>[<digit>] Media ID, identifying a media type used in the job, range 1..16 |
<separator> |
Format: | For example, (<CR><LF>) | <LF> |
<fs> |
Field separator; which must be consistent throughout the log file. Format: <semicolon> | <comma> |