Reputation: 1045
Currently reading the CMake Documentation, I am wondering if there is any agreed on syntax guideline for it.
For example from the Command Invocations part:
command_invocation ::= space* identifier space* '(' arguments ')'
identifier ::= < match '[ A-Za-z_ ][ A-Za-z0-9_ ] * ' >
I can roughly deduce the meaning. Anyway it would be nice to have some common guidelines ( e.g. why ::=
, is [...]*
a UNIX Regular Expression as well as space*
, ...)
Upvotes: 0
Views: 122
Reputation: 171127
It's using BNF (Backus-Naur form), which is a de-facto standard for specifying programming language grammars.
Upvotes: 3