【问题标题】:What does text in `{ }` in MSDN syntax documentation mean?MSDN 语法文档中的 `{ }` 中的文本是什么意思?
【发布时间】:2016-03-30 14:20:36
【问题描述】:

我正在阅读有关 EMFSPOOL 记录的 MSDN 文档。在记录语法章节中,语法呈现如下:

<emf_spool_format> ::= <Header_record>
      [ <EMRI_PS_JOB_DATA_record> ]
      { <other_records> }
       <page_offset_records>  

<other_records> ::= <page_content_records> |
      <font_definition_records> |
      <font_offset_records> |
      <EMRI_DEVMODE_record> |
      <EMRI_PRESTARTPAGE_record>

等等。 我知道[ ] 中的文字表示“可选”,但{ } 中的文字是什么意思? 像这样编写文档可能是更普遍的惯例吗?

这是完整语法的链接: https://msdn.microsoft.com/en-us/library/cc231157.aspx

【问题讨论】:

    标签: syntax msdn


    【解决方案1】:

    在 MSDN 中进行了更彻底的搜索后,我发现这是扩展巴科斯-瑙尔形式 (EBNF) 表示法。因此,{ } 中的表达式表示重复零次或多次的表达式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-21
      • 2014-02-23
      • 2013-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-21
      • 2012-07-21
      相关资源
      最近更新 更多