Skip to content

Commit d42349b

Browse files
committed
Add new error states
1 parent db3b51f commit d42349b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

compiler/src/parsing/parser.messages

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3880,6 +3880,32 @@ program: LET LPAREN WASMI64 COMMA EOL WHILE
38803880
## In state 3, spurious reduction of production nonempty_list(eol) -> EOL
38813881
## In state 5, spurious reduction of production eols -> nonempty_list(eol)
38823882
##
3883+
program: LET NUMBER_INT PIPE WHILE
3884+
##
3885+
## Ends in an error in state: 345.
3886+
##
3887+
## pattern -> pattern PIPE . pattern [ WHEN THICKARROW RPAREN RBRACK RBRACE PIPE EQUAL EOL COMMA COLON ]
3888+
## pattern -> pattern PIPE . eols pattern [ WHEN THICKARROW RPAREN RBRACK RBRACE PIPE EQUAL EOL COMMA COLON ]
3889+
##
3890+
## The known suffix of the stack is as follows:
3891+
## pattern PIPE
3892+
##
3893+
program: LET NUMBER_INT PIPE EOL WHILE
3894+
##
3895+
## Ends in an error in state: 404.
3896+
##
3897+
## pattern -> pattern PIPE eols . pattern [ WHEN THICKARROW RPAREN RBRACK RBRACE PIPE EQUAL EOL COMMA COLON ]
3898+
##
3899+
## The known suffix of the stack is as follows:
3900+
## pattern PIPE eols
3901+
##
3902+
## WARNING: This example involves spurious reductions.
3903+
## This implies that, although the LR(1) items shown above provide an
3904+
## accurate view of the past (what has been recognized so far), they
3905+
## may provide an INCOMPLETE view of the future (what was expected next).
3906+
## In state 3, spurious reduction of production nonempty_list(eol) -> EOL
3907+
## In state 5, spurious reduction of production eols -> nonempty_list(eol)
3908+
##
38833909

38843910
Expected a pattern.
38853911

0 commit comments

Comments
 (0)