Zum Hauptinhalt springen

Grammatikalische Spezifikation der Hosttabelle

A. Parsing-Grammatik

<entry> ::= <keyword> ":" <addresses> ":" <names> [":" [<cputype>]
[":" [<opsys>] [":" [<protocol list>] ]]] ":"
<addresses> ::= <address> *["," <address>]
<address> ::= <octet> "." <octet> "." <octet> "." <octet>
<octet> ::= <0 to 255 decimal>
<names> ::= <netname> | <gatename>
| <official hostname> *["," <nicknames>]
<netname> ::= <name>
<gatename> ::= <name>
<official hostname> ::= <name>
<nickname> ::= <name>
<protocol list> ::= <protocol spec> *["," <protocol spec>]
<protocol spec> ::= <transport name> "/" <service name> |
<raw protocol name>

B. Lexikalische Grammatik

<entry-field> ::= <entry-text> [<cr><lf> <blank> <entry-field>]
<blank> ::= <space or tab>
<keyword> ::= NET | GATEWAY | HOST
<name> ::= <letter>[*[<letter-or-digit-or-hyphen>]<letter-or-digit>]
<cputype> ::= PDP-11/70 | DEC-1080 | C/30 | CDC-6400...etc.
<opsys> ::= ITS | MULTICS | TOPS20 | UNIX...etc.
<transport name> ::= TCP | NCP | UDP | IP...etc.
<service name> ::= TELNET | FTP | SMTP | MTP...etc.
<raw protocol name> ::= <name>
<comment> ::= ";" <arbitrary text><cr><lf>

Anmerkungen:

  1. Zwischen den Trennzeichen „ , : “ sind null oder mehr „Blanks“ zulässig. „Blanks“ sind Leerzeichen und Tabulatoren.
  2. Fortsetzungszeilen sind Zeilen, die mit mindestens einem Blank beginnen. Sie können überall dort verwendet werden, wo „Blanks“ zulässig sind, um einen Eintrag über mehrere Zeilen zu verteilen.