【发布时间】:2013-07-21 05:51:25
【问题描述】:
我对扩展 BNF 有一些疑问。
(* Extended BNF grammar *)
min = 5;
max = 10;
value = integer; (* How can I set the range rule: `min <= value <= max`? *)
第二个问题:
name = letter, { letter | decimal digit };
(* The common length of the comment line must be not more than 128 characters.
But I don't know the name's length. How can I set this restriction? *)
comment line = ';', name, ' ', 128 * [ character ], new line;
我已完整阅读 ISO/IEC 14977:1996(E),但没有找到答案。
谢谢。
【问题讨论】: