1. trijezdci
  2. M2R10

Commits

trijezdci  committed be1b0bd

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

  • Participants
  • Parent commits 18a54e6
  • Branches default

Comments (0)

Files changed (1)

File _GRAMMAR/modula2_syntax_diagrams.tcl

View file
       {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