gainsurier
V2EX  ›  问与答

cmake 文档中是使用了什么语言描述 cmake 语言

  •  
  •   gainsurier · Sep 29, 2018 · 1169 views
    This topic created in 2809 days ago, the information mentioned may be changed or developed.
    https://cmake.org/cmake/help/latest/manual/cmake-language.7.html

    最开始的 file 描述
    file ::= file_element*
    file_element ::= command_invocation line_ending |
    (bracket_comment|space)* line_ending
    line_ending ::= line_comment? newline
    space ::= <match '[ \t]+'>
    newline ::= <match '\n'>

    有点像上下文无关文法加上正则表达式

    找到了,是巴科斯范式(Backus – Naur form)
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2652 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 15:40 · PVG 23:40 · LAX 08:40 · JFK 11:40
    ♥ Do have faith in what you're doing.