gainsurier
V2EX  ›  问与答

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

  •  
  •   gainsurier · Sep 29, 2018 · 1170 views
    This topic created in 2810 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   ·   1196 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 17:49 · PVG 01:49 · LAX 10:49 · JFK 13:49
    ♥ Do have faith in what you're doing.