You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Productions are expressions constructed from terms and the following operators, in increasing precedence:
20
+
21
+
```go
22
+
| alternation
23
+
() grouping
24
+
[] option (0 or 1 times)
25
+
{} repetition (0 to n times)
26
+
```
27
+
28
+
Lowercase production names are used to identify lexical (terminal) tokens. Non-terminals are in CamelCase. Lexical tokens are enclosed in double quotes `""` or back quotes ``.
29
+
30
+
The form `a … b` represents the set of characters from a through b as alternatives. The horizontal ellipsis `…` is also used elsewhere in the spec to informally denote various enumerations or code snippets that are not further specified. The character … (as opposed to the three characters `...`) is not a token of the Go+ language.
31
+
32
+
4
33
## Comments
5
34
6
35
Comments serve as program documentation. There are three forms:
0 commit comments