aboutsummaryrefslogtreecommitdiff
path: root/lib/qparser/expression_parser.messages
diff options
context:
space:
mode:
authorChimrod <>2023-10-19 09:51:16 +0200
committerChimrod <>2023-10-21 18:56:20 +0200
commit73e7e0ca6b7b7a0676300d7900c743defe41fa10 (patch)
tree65ac73c1121f18a087b13479deaa1f490edd4889 /lib/qparser/expression_parser.messages
parent8101e3d39333bb80757228b604e1e825a062b1e0 (diff)
Updated the tests
Diffstat (limited to 'lib/qparser/expression_parser.messages')
-rw-r--r--lib/qparser/expression_parser.messages29
1 files changed, 7 insertions, 22 deletions
diff --git a/lib/qparser/expression_parser.messages b/lib/qparser/expression_parser.messages
index 4f99943..23d0dc3 100644
--- a/lib/qparser/expression_parser.messages
+++ b/lib/qparser/expression_parser.messages
@@ -138,7 +138,7 @@ main: LOCATION_START EOL IF IDENT COLUMN EOL IDENT AMPERSAND LOCATION_END
## In state 146, spurious reduction of production list(line_statement) -> line_statement list(line_statement)
##
-Unclosed `IF` block.
+Unclosed `IF` block. Another block ends before the `END` instruction.
main: LOCATION_START EOL IF IDENT COLUMN EOL ELSE EOL LOCATION_END
##
@@ -251,27 +251,8 @@ main: LOCATION_START EOL IF IDENT COLUMN EOL ELIF INTEGER SET
The `ELIF` expression does not end properly. A `:` is expected before any instruction.
main: LOCATION_START EOL IF IDENT COLUMN EOL ELIF IDENT COLUMN EOL IDENT AMPERSAND LOCATION_END
-##
-## Ends in an error in state: 173.
-##
-## list(elif) -> elif . list(elif) [ END ELSE ]
-##
-## The known suffix of the stack is as follows:
-## elif
-##
-## WARNING: This example involves spurious reductions.
-## This implies that, although the LR(1) items shown above provide an
-## accurate view of the past (what has been recognized so far), they
-## may provide an INCOMPLETE view of the future (what was expected next).
-## In state 117, spurious reduction of production nonempty_list(AMPERSAND) -> AMPERSAND
-## In state 149, spurious reduction of production list(EOL) ->
-## In state 150, spurious reduction of production line_statement -> instruction nonempty_list(AMPERSAND) list(EOL)
-## In state 145, spurious reduction of production list(line_statement) ->
-## In state 146, spurious reduction of production list(line_statement) -> line_statement list(line_statement)
-## In state 160, spurious reduction of production elif -> ELIF expression COLUMN nonempty_list(EOL) list(line_statement)
-##
-Unclosed `ELIF` block.
+Unclosed `ELIF` block. Another block ends before the `END` instruction.
main: EOL STAR
##
@@ -310,4 +291,8 @@ Missing operand
main: LOCATION_START EOL IF IDENT COLUMN EOL ELIF IDENT COLUMN STAR
-Mix between IF block and inline ELIF
+Mix between `IF` block and inline `ELIF`
+
+main: LOCATION_START EOL IF IDENT COLUMN EOL ELSE EOL IDENT AMPERSAND LOCATION_END
+
+Unclosed `ELSE` block. Another block ends before the `END` instruction.