Grammatical Host Table Specification
A. Parsing grammar
<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. Lexical grammar
<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>
Notes:
- Zero or more 'blanks' between separators " , : " are allowed. 'Blanks' are spaces and tabs.
- Continuation lines are lines that begin with at least one blank. They may be used anywhere 'blanks' are legal to split an entry across lines.