@@ -649,89 +649,6 @@ program: MODULE UIDENT EOL DASH WHILE
649649
650650Expected a number to follow the minus sign.
651651
652- program: MODULE UIDENT EOL ENUM UIDENT LBRACE LBRACK ELLIPSIS RBRACK LPAREN UIDENT RCARET
653- ##
654- ## Ends in an error in state: 961.
655- ##
656- ## data_constructor -> lbrack ELLIPSIS rbrack lparen option(typs) . rparen [ RBRACE EOL COMMA ]
657- ##
658- ## The known suffix of the stack is as follows:
659- ## lbrack ELLIPSIS rbrack lparen option(typs)
660- ##
661- ## WARNING: This example involves spurious reductions.
662- ## This implies that, although the LR(1) items shown above provide an
663- ## accurate view of the past (what has been recognized so far), they
664- ## may provide an INCOMPLETE view of the future (what was expected next).
665- ## In state 89, spurious reduction of production type_id -> lseparated_nonempty_list_inner(dot,type_id_str)
666- ## In state 79, spurious reduction of production data_typ -> type_id
667- ## In state 106, spurious reduction of production typ -> data_typ
668- ## In state 88, spurious reduction of production lseparated_nonempty_list_inner(comma,typ) -> typ
669- ## In state 94, spurious reduction of production option(comma) ->
670- ## In state 97, spurious reduction of production typs -> lseparated_nonempty_list_inner(comma,typ) option(comma)
671- ## In state 119, spurious reduction of production option(typs) -> typs
672- ##
673- program: MODULE UIDENT EOL ENUM UIDENT LBRACE LBRACK ELLIPSIS RBRACK LPAREN WHILE
674- ##
675- ## Ends in an error in state: 960.
676- ##
677- ## data_constructor -> lbrack ELLIPSIS rbrack lparen . option(typs) rparen [ RBRACE EOL COMMA ]
678- ##
679- ## The known suffix of the stack is as follows:
680- ## lbrack ELLIPSIS rbrack lparen
681- ##
682- ## WARNING: This example involves spurious reductions.
683- ## This implies that, although the LR(1) items shown above provide an
684- ## accurate view of the past (what has been recognized so far), they
685- ## may provide an INCOMPLETE view of the future (what was expected next).
686- ## In state 2, spurious reduction of production lparen -> LPAREN
687- ##
688- program: MODULE UIDENT EOL ENUM UIDENT LBRACE LBRACK ELLIPSIS RBRACK WHILE
689- ##
690- ## Ends in an error in state: 959.
691- ##
692- ## data_constructor -> lbrack ELLIPSIS rbrack . lparen option(typs) rparen [ RBRACE EOL COMMA ]
693- ##
694- ## The known suffix of the stack is as follows:
695- ## lbrack ELLIPSIS rbrack
696- ##
697- program: MODULE UIDENT EOL ENUM UIDENT LBRACE LBRACK ELLIPSIS WHILE
698- ##
699- ## Ends in an error in state: 958.
700- ##
701- ## data_constructor -> lbrack ELLIPSIS . rbrack lparen option(typs) rparen [ RBRACE EOL COMMA ]
702- ##
703- ## The known suffix of the stack is as follows:
704- ## lbrack ELLIPSIS
705- ##
706- program: MODULE UIDENT EOL ENUM UIDENT LBRACE LBRACK RBRACK WHILE
707- ##
708- ## Ends in an error in state: 953.
709- ##
710- ## data_constructors -> lbrace lseparated_nonempty_list_inner(comma,data_constructor) . option(comma) rbrace [ SEMI EOL EOF COMMA ]
711- ## lseparated_nonempty_list_inner(comma,data_constructor) -> lseparated_nonempty_list_inner(comma,data_constructor) . comma data_constructor [ RBRACE EOL COMMA ]
712- ##
713- ## The known suffix of the stack is as follows:
714- ## lbrace lseparated_nonempty_list_inner(comma,data_constructor)
715- ##
716- program: MODULE UIDENT EOL ENUM UIDENT LBRACE LBRACK WHILE
717- ##
718- ## Ends in an error in state: 957.
719- ##
720- ## data_constructor -> lbrack . rbrack [ RBRACE EOL COMMA ]
721- ## data_constructor -> lbrack . ELLIPSIS rbrack lparen option(typs) rparen [ RBRACE EOL COMMA ]
722- ##
723- ## The known suffix of the stack is as follows:
724- ## lbrack
725- ##
726- ## WARNING: This example involves spurious reductions.
727- ## This implies that, although the LR(1) items shown above provide an
728- ## accurate view of the past (what has been recognized so far), they
729- ## may provide an INCOMPLETE view of the future (what was expected next).
730- ## In state 19, spurious reduction of production lbrack -> LBRACK
731- ##
732-
733- Expected a list enum declaration using the syntax `enum List<a> { [], [...](a, List<a>) }`.
734-
735652program: MODULE UIDENT EOL ENUM UIDENT LBRACE UIDENT COMMA EOL WHILE
736653##
737654## Ends in an error in state: 956.
@@ -6290,6 +6207,19 @@ program: MODULE UIDENT EOL UIDENT LPAREN WHEN
62906207
62916208Expected a comma-separated list of expressions or `)` to complete the constructor.
62926209
6210+ program: MODULE UIDENT EOL ENUM UIDENT LBRACE UIDENT LPAREN RPAREN YIELD
6211+ ##
6212+ ## Ends in an error in state: 778.
6213+ ##
6214+ ## data_constructors -> lbrace lseparated_nonempty_list_inner(comma,data_constructor) . option(comma) rbrace [ SEMI RBRACE EOL EOF COMMA ]
6215+ ## lseparated_nonempty_list_inner(comma,data_constructor) -> lseparated_nonempty_list_inner(comma,data_constructor) . comma data_constructor [ RBRACE EOL COMMA ]
6216+ ##
6217+ ## The known suffix of the stack is as follows:
6218+ ## lbrace lseparated_nonempty_list_inner(comma,data_constructor)
6219+ ##
6220+
6221+ Expected a comma followed by more constructors or `}` to complete the enum declaration.
6222+
62936223program: MODULE UIDENT EOL WHILE LPAREN UNDERSCORE
62946224##
62956225## Ends in an error in state: 7.
0 commit comments