跳到主要内容

ASCII 文件的语法

因此,为了推动事情进展,我们提议做以下几件事:

  1. 我们将编写一个程序,按 RFC# 606 中描述的语法生成 ASCII 文件,即:
<host-name-file> ::= <entry> / <host-name-file> <entry>

<entry> ::= <data-part> <end-of-line>

请注意,这会在 <data-part> 之后产生一个空行。

<data-part> ::= <basic-part> / <data-part> <attribute-item>

<basic-part> ::= <host-name> , <host-address> <end-of-line>

<attribute-item> ::= <attribute-name> = <attribute-value> <end-
of-line>