|
于2007-07-18 22:07:17修订的的版本1
大小: 715
备注:
|
于2007-07-19 07:28:52修订的的版本2
大小: 766
备注:
|
| 删除的内容标记成这样。 | 加入的内容标记成这样。 |
| 行号 1: | 行号 1: |
| ## page was renamed from TCPL/A.3 Syntax Notation |
A.3 Syntax Notation
In the syntax notation used in this manual, syntactic categories are indicated by italic type, and literal words and characters in typewriter style. Alternative categories are usually listed on separate lines; in a few cases, a long set of narrow alternatives is presented on one line, marked by the phrase one of. An optional terminal or nonterminal symbol carries the subscript opt, so that, for example,
{ expressionopt }
means an optional expression, enclosed in braces. The syntax is summarized in Par.A.13.
- Unlike the grammar given in the first edition of this book, the one given here makes precedence and associativity of expression operators explicit.