Commits

trijezdci committed be1b0bd

added alternative case statement diagram rule while case label prefix (instead of separator) is being considered

Comments (0)

Files changed (1)

_GRAMMAR/modula2_syntax_diagrams.tcl

       {line {optx ELSE statementSequence} END}
   }
   caseStatement {
-      line CASE expression OF {loop case |}
-      {optx ELSE statementSequence} END
+    stack
+      {line CASE expression OF}
+      {line {loop case |} {optx ELSE statementSequence} END}
+  }
+  altCaseStatement {
+    stack
+      {line CASE expression OF}
+      {line {loop {line | case} {}} {optx ELSE statementSequence} END}
   }
   case {
     line {loop caseLabels ,} : statementSequence