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
Copy file name to clipboardExpand all lines: src/grammar/parser.y
+31-1
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,37 @@ import java.util.Stack;
68
68
69
69
%%
70
70
// Source: Java Language Specification - Third Edition
71
-
// The Java(TM) Language Specification - Java SE 8 Edition ( Chapter 19. Syntax )
71
+
// The Java(TM) Language Specification - Java SE 17 Edition ( Chapter 19. Syntax )
72
+
//
73
+
// Grammar Notation (Chapter 2.4)
74
+
// The syntax {x} on the right-hand side of a production denotes zero or more occurrences of x.
75
+
//
76
+
// The syntax [x] on the right-hand side of a production denotes zero or one occurrences of x.
77
+
// That is, x is an optional symbol. The alternative which contains the optional symbol actually defines two alternatives: one that omits the optional symbol and one that includes it.
0 commit comments