Table of Contents

Article Syntax

General Syntax

The following figure shows a sample of a complex syntax description. This is not an example of an exis- ting system parameter or panel command. It is used mainly to demonstrate the “look and feel” of syntax descriptions.

  CMDNAME required argument [optional argument]
          {required choice 1 | required choice 2 | required choice 3}
          [optional choice 1 | optional choice 2]
          REQUIRED KEYWORD=variable
          [OPTIONAL KEYWORD=variable]
          [DEFAULT KEYWORD | KEYWORD 1 | KEYWORD 2]
          [KEYWORD=default choice | KEYWORD={choice 1 | choice 2}]
          repeatable item n {repeatable item n ...}
          repeatable item n {,repeatable item n ,...}
          fragment name
          (variable 1, variable 2)
          
      fragment_name
          [DEFAULT KEYWORD | KEYWORD 1 | KEYWORD 2 | KEYWORD 3 | KEYWORD 4]
          KEYWORD={choice 1 | choice 2 | choice 3 | choice 4}

Extended Backus–Naur form

All syntax is described using the Extended Backus-Naur form wherever possible. This article is intended to help content creators understand the formatting and to make them understandable by the readers.

How to use

<ebnf> "EBNF defined in itself" {
syntax     = [ title ] "{" { production } "}" [ comment ].
production = identifier "=" expression ( "." | ";" ) .
expression = term { "|" term } .
term       = factor { factor } .
factor     = identifier
           | literal
           | "[" expression "]"
           | "(" expression ")"
           | "{" expression "}" .
identifier = character { character } .
title      = literal .
comment    = literal .
literal    = "'" character { character } "'"
           | '"' character { character } '"' .
}</ebnf>

Syntax

+%22EBNF+defined+in+itself%22+%7B+syntax+%3D+%5B+title+%5D+%22%7B%22+%7B+production+%7D+%22%7D%22+%5B+comment+%5D.+production+%3D+identifier+%22%3D%22+expression+%28+%22.%22+%7C+%22%3B%22+%29+.+expression+%3D+term+%7B+%22%7C%22+term+%7D+.+term+%3D+factor+%7B+factor+%7D+.+factor+%3D+identifier+%7C+literal+%7C+%22%5B%22+expression+%22%5D%22+%7C+%22%28%22+expression+%22%29%22+%7C+%22%7B%22+expression+%22%7D%22+.+identifier+%3D+character+%7B+character+%7D+.+title+%3D+literal+.+comment+%3D+literal+.+literal+%3D+%22%27%22+character+%7B+character+%7D+%22%27%22+%7C+%27%22%27+character+%7B+character+%7D+%27%22%27+.+%7D