我对扩展 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),但没有找到答案。
谢谢你。