定义的语法

时间:2014-10-28 17:19:20

标签: regex msdn

MSDN中用于定义的语法是什么以及如何理解它?

connection-string ::= empty-string[;] | attribute[;] | attribute; connection-string
empty-string ::=attribute ::= attribute-keyword=attribute-value | DRIVER=[{]attribute-value[}]
attribute-keyword ::= DSN | UID | PWD | driver-defined-attribute-keyword
attribute-value ::= character-string
driver-defined-attribute-keyword ::= identifier

这是某种正则表达吗?

1 个答案:

答案 0 :(得分:0)

这是Backus-Naur Form (BNF),一种非常适合描述语言产生的元语言。