diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/analyzer.ml | 14 | ||||
-rw-r--r-- | lib/expression_parser.messages | 1137 |
2 files changed, 8 insertions, 1143 deletions
diff --git a/lib/analyzer.ml b/lib/analyzer.ml index 7a64cab..da1adbf 100644 --- a/lib/analyzer.ml +++ b/lib/analyzer.ml @@ -23,13 +23,13 @@ let parse : | Interpreter.InvalidSyntax -> "Invalid Syntax" | Interpreter.UnrecoverableError -> "UnrecoverableError" | Interpreter.MenhirCode c -> - String.concat "" - [ - String.trim @@ Parser_messages.message c; - " (Error code "; - string_of_int c; - ")"; - ] + let message_content = + try Parser_messages.message c + with Not_found -> + String.concat "" [ "(Error code "; string_of_int c; ")" ] + in + + String.concat "" [ String.trim @@ message_content ] in let report = Qsp_syntax.Report.error (e.start_pos, e.end_pos) message diff --git a/lib/expression_parser.messages b/lib/expression_parser.messages index eaeec6c..2bdf477 100644 --- a/lib/expression_parser.messages +++ b/lib/expression_parser.messages @@ -311,880 +311,6 @@ main: EOL STAR The context does not allow an instruction here. -main: LOCATION_START EOL R_PAREN -## -## Ends in an error in state: 7. -## -## nonempty_list(EOL) -> EOL . [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## nonempty_list(EOL) -> EOL . nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## EOL -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL STAR STAR -## -## Ends in an error in state: 10. -## -## keyword -> STAR . KEYWORD [ PLUS OBJ NO MINUS L_PAREN LITERAL INTEGER IDENT FUNCTION EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## STAR -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL SET STAR -## -## Ends in an error in state: 12. -## -## let_assignation -> SET . variable assignation_operator expression [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## SET -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT L_BRACKET STAR -## -## Ends in an error in state: 14. -## -## option(delimited(L_BRACKET,option(expression),R_BRACKET)) -> L_BRACKET . option(expression) R_BRACKET [ STAR R_PAREN R_BRACKET PLUS OR MULT_EQUAL MOD MINUS LT INCR GT EXCLAMATION EQUAL EOL ELSE DIV DECR COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## L_BRACKET -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL L_PAREN STAR -## -## Ends in an error in state: 19. -## -## expression -> L_PAREN . expression R_PAREN [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## L_PAREN -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL FUNCTION STAR -## -## Ends in an error in state: 22. -## -## expression -> FUNCTION . L_PAREN arguments(expression) R_PAREN [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## expression -> FUNCTION . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## FUNCTION -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL FUNCTION L_PAREN STAR -## -## Ends in an error in state: 23. -## -## expression -> L_PAREN . expression R_PAREN [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## expression -> FUNCTION L_PAREN . arguments(expression) R_PAREN [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## FUNCTION L_PAREN -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT STAR STAR -## -## Ends in an error in state: 27. -## -## expression -> expression STAR . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression STAR -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT LT STAR -## -## Ends in an error in state: 39. -## -## expression -> expression LT . GT expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## expression -> expression LT . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## expression -> expression LT . EQUAL expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression LT -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT GT STAR -## -## Ends in an error in state: 46. -## -## expression -> expression GT . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## expression -> expression GT . EQUAL expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression GT -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL INTEGER EQUAL STAR -## -## Ends in an error in state: 51. -## -## expression -> expression EQUAL . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## expression -> expression EQUAL . GT expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## expression -> expression EQUAL . LT expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression EQUAL -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL KEYWORD L_PAREN INTEGER SET -## -## Ends in an error in state: 59. -## -## arguments(expression) -> expression . COMA separated_nonempty_list(COMA,expression) [ R_PAREN ] -## expression -> L_PAREN expression . R_PAREN [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## expression -> expression . EQUAL expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . LT GT expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . EXCLAMATION expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . PLUS expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . MINUS expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . STAR expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . DIV expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . MOD expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . GT expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . LT expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . AND expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . GT EQUAL expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . LT EQUAL expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . EQUAL GT expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . EQUAL LT expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## expression -> expression . OR expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COMA AND ] -## -## The known suffix of the stack is as follows: -## L_PAREN expression -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL KEYWORD IDENT COMA INTEGER SET -## -## Ends in an error in state: 63. -## -## expression -> expression . EQUAL expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . LT GT expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . EXCLAMATION expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . PLUS expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . MINUS expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . STAR expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . DIV expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . MOD expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . GT expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . LT expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . AND expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . GT EQUAL expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . LT EQUAL expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . EQUAL GT expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . EQUAL LT expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . OR expression [ STAR R_PAREN PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## separated_nonempty_list(COMA,expression) -> expression . [ R_PAREN EOL ELSE AMPERSAND ] -## separated_nonempty_list(COMA,expression) -> expression . COMA separated_nonempty_list(COMA,expression) [ R_PAREN EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL KEYWORD IDENT COMA IDENT COMA STAR -## -## Ends in an error in state: 64. -## -## separated_nonempty_list(COMA,expression) -> expression COMA . separated_nonempty_list(COMA,expression) [ R_PAREN EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression COMA -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL FUNCTION L_PAREN IDENT COMA IDENT EOL -## -## Ends in an error in state: 66. -## -## expression -> FUNCTION L_PAREN arguments(expression) . R_PAREN [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## FUNCTION L_PAREN arguments(expression) -## -## 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 13, spurious reduction of production option(delimited(L_BRACKET,option(expression),R_BRACKET)) -> -## In state 73, spurious reduction of production variable -> IDENT option(delimited(L_BRACKET,option(expression),R_BRACKET)) -## In state 24, spurious reduction of production expression -> variable -## In state 63, spurious reduction of production separated_nonempty_list(COMA,expression) -> expression -## In state 62, spurious reduction of production arguments(expression) -> expression COMA separated_nonempty_list(COMA,expression) -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT L_BRACKET INTEGER SET -## -## Ends in an error in state: 72. -## -## expression -> expression . EQUAL expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . LT GT expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . EXCLAMATION expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . PLUS expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . MINUS expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . STAR expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . DIV expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . MOD expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . GT expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . LT expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . AND expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . GT EQUAL expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . LT EQUAL expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . EQUAL GT expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . EQUAL LT expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## expression -> expression . OR expression [ STAR R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV AND ] -## option(expression) -> expression . [ R_BRACKET ] -## -## The known suffix of the stack is as follows: -## expression -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL SET IDENT STAR -## -## Ends in an error in state: 74. -## -## let_assignation -> SET variable . assignation_operator expression [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## SET variable -## -## 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 13, spurious reduction of production option(delimited(L_BRACKET,option(expression),R_BRACKET)) -> -## In state 73, spurious reduction of production variable -> IDENT option(delimited(L_BRACKET,option(expression),R_BRACKET)) -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL SET IDENT DECR STAR -## -## Ends in an error in state: 79. -## -## let_assignation -> SET variable assignation_operator . expression [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## SET variable assignation_operator -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL SET IDENT DECR INTEGER SET -## -## Ends in an error in state: 80. -## -## expression -> expression . EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . LT GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . EXCLAMATION expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . PLUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . MINUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . STAR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . DIV expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . MOD expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . AND expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . GT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . LT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . EQUAL GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . EQUAL LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . OR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## let_assignation -> SET variable assignation_operator expression . [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## SET variable assignation_operator expression -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL LET STAR -## -## Ends in an error in state: 81. -## -## let_assignation -> LET . variable assignation_operator expression [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## LET -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL LET IDENT STAR -## -## Ends in an error in state: 82. -## -## let_assignation -> LET variable . assignation_operator expression [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## LET variable -## -## 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 13, spurious reduction of production option(delimited(L_BRACKET,option(expression),R_BRACKET)) -> -## In state 73, spurious reduction of production variable -> IDENT option(delimited(L_BRACKET,option(expression),R_BRACKET)) -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL LET IDENT DECR STAR -## -## Ends in an error in state: 83. -## -## let_assignation -> LET variable assignation_operator . expression [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## LET variable assignation_operator -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL LET IDENT DECR INTEGER SET -## -## Ends in an error in state: 84. -## -## expression -> expression . EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . LT GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . EXCLAMATION expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . PLUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . MINUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . STAR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . DIV expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . MOD expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . AND expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . GT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . LT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . EQUAL GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . EQUAL LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . OR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## let_assignation -> LET variable assignation_operator expression . [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## LET variable assignation_operator expression -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IF STAR -## -## Ends in an error in state: 86. -## -## line_statement -> IF . expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body END option(IF) nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> IF . expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body END option(IF) nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## onliner(IF) -> IF . expression COLUMN final_inline_instruction [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## IF -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IF IDENT COLUMN R_PAREN -## -## Ends in an error in state: 88. -## -## line_statement -> IF expression COLUMN . nonempty_list(EOL) list(line_statement) elif_else_body END option(IF) nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> IF expression COLUMN . nonempty_list(EOL) list(line_statement) elif_else_body END option(IF) nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## onliner(IF) -> IF expression COLUMN . final_inline_instruction [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## IF expression COLUMN -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IF IDENT COLUMN EOL LOCATION_END -## -## Ends in an error in state: 89. -## -## line_statement -> IF expression COLUMN nonempty_list(EOL) . list(line_statement) elif_else_body END option(IF) nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> IF expression COLUMN nonempty_list(EOL) . list(line_statement) elif_else_body END option(IF) nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## IF expression COLUMN nonempty_list(EOL) -## -## 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 7, spurious reduction of production nonempty_list(EOL) -> EOL -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL COMMENT STAR -## -## Ends in an error in state: 90. -## -## line_statement -> COMMENT . nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## COMMENT -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL COLUMN IDENT R_PAREN -## -## Ends in an error in state: 93. -## -## line_statement -> COLUMN IDENT . list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## COLUMN IDENT -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT STAR -## -## Ends in an error in state: 97. -## -## line_statement -> ACT . expression COLUMN nonempty_list(EOL) list(line_statement) empty_body END option(ACT) nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> ACT . expression COLUMN nonempty_list(EOL) list(line_statement) empty_body END option(ACT) nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## onliner(ACT) -> ACT . expression COLUMN final_inline_instruction [ EOL AMPERSAND ] -## -## The known suffix of the stack is as follows: -## ACT -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT IDENT COLUMN R_PAREN -## -## Ends in an error in state: 99. -## -## line_statement -> ACT expression COLUMN . nonempty_list(EOL) list(line_statement) empty_body END option(ACT) nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> ACT expression COLUMN . nonempty_list(EOL) list(line_statement) empty_body END option(ACT) nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## onliner(ACT) -> ACT expression COLUMN . final_inline_instruction [ EOL AMPERSAND ] -## -## The known suffix of the stack is as follows: -## ACT expression COLUMN -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT DECR STAR -## -## Ends in an error in state: 102. -## -## let_assignation -> variable assignation_operator . expression [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## variable assignation_operator -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT DECR INTEGER SET -## -## Ends in an error in state: 103. -## -## expression -> expression . EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . LT GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . EXCLAMATION expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . PLUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . MINUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . STAR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . DIV expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . MOD expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . AND expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . GT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . LT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . EQUAL GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . EQUAL LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## expression -> expression . OR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV AND AMPERSAND ] -## let_assignation -> variable assignation_operator expression . [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## variable assignation_operator expression -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IF IDENT COLUMN COMMENT STAR -## -## Ends in an error in state: 105. -## -## inline_action -> onliner(IF) . option(preceded(ELSE,instruction)) [ EOL ELSE AMPERSAND ] -## inline_action -> onliner(IF) . ELSE inline_action [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## onliner(IF) -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL KEYWORD STAR -## -## Ends in an error in state: 122. -## -## single_instruction -> keyword . qsp_instruction_argument(expression) [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## keyword -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL KEYWORD L_PAREN STAR -## -## Ends in an error in state: 123. -## -## expression -> L_PAREN . expression R_PAREN [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## optionnal_delimited(L_PAREN,arguments(expression),R_PAREN) -> L_PAREN . arguments(expression) R_PAREN [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## L_PAREN -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL KEYWORD L_PAREN IDENT COMA IDENT EOL -## -## Ends in an error in state: 124. -## -## optionnal_delimited(L_PAREN,arguments(expression),R_PAREN) -> L_PAREN arguments(expression) . R_PAREN [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## L_PAREN arguments(expression) -## -## 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 13, spurious reduction of production option(delimited(L_BRACKET,option(expression),R_BRACKET)) -> -## In state 73, spurious reduction of production variable -> IDENT option(delimited(L_BRACKET,option(expression),R_BRACKET)) -## In state 24, spurious reduction of production expression -> variable -## In state 63, spurious reduction of production separated_nonempty_list(COMA,expression) -> expression -## In state 62, spurious reduction of production arguments(expression) -> expression COMA separated_nonempty_list(COMA,expression) -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL KEYWORD INTEGER SET -## -## Ends in an error in state: 128. -## -## arguments(expression) -> expression . COMA separated_nonempty_list(COMA,expression) [ EOL ELSE AMPERSAND ] -## expression -> expression . EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . LT GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . EXCLAMATION expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . PLUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . MINUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . STAR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . DIV expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . MOD expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . AND expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . GT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . LT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . EQUAL GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . EQUAL LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## expression -> expression . OR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA AND AMPERSAND ] -## qsp_instruction_argument(expression) -> expression . [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT IDENT COLUMN EOL IDENT AMPERSAND LOCATION_END -## -## Ends in an error in state: 138. -## -## line_statement -> ACT expression COLUMN nonempty_list(EOL) list(line_statement) empty_body . END option(ACT) nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> ACT expression COLUMN nonempty_list(EOL) list(line_statement) empty_body . END option(ACT) nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## ACT expression COLUMN nonempty_list(EOL) list(line_statement) empty_body -## -## 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 137, spurious reduction of production empty_body -> -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT IDENT COLUMN EOL END STAR -## -## Ends in an error in state: 139. -## -## line_statement -> ACT expression COLUMN nonempty_list(EOL) list(line_statement) empty_body END . option(ACT) nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> ACT expression COLUMN nonempty_list(EOL) list(line_statement) empty_body END . option(ACT) nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## ACT expression COLUMN nonempty_list(EOL) list(line_statement) empty_body END -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT IDENT COLUMN EOL END ACT STAR -## -## Ends in an error in state: 141. -## -## line_statement -> ACT expression COLUMN nonempty_list(EOL) list(line_statement) empty_body END option(ACT) . nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> ACT expression COLUMN nonempty_list(EOL) list(line_statement) empty_body END option(ACT) . nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## ACT expression COLUMN nonempty_list(EOL) list(line_statement) empty_body END option(ACT) -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT AMPERSAND R_PAREN -## -## Ends in an error in state: 117. -## -## nonempty_list(AMPERSAND) -> AMPERSAND . [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION EOL END ELSE ELIF COMMENT COLUMN AMPERSAND ACT ] -## nonempty_list(AMPERSAND) -> AMPERSAND . nonempty_list(AMPERSAND) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION EOL END ELSE ELIF COMMENT COLUMN AMPERSAND ACT ] -## -## The known suffix of the stack is as follows: -## AMPERSAND -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT AMPERSAND EOL EOF -## -## Ends in an error in state: 94. -## -## list(EOL) -> EOL . list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## EOL -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT ELSE -## -## Ends in an error in state: 147. -## -## line_statement -> instruction . nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> instruction . nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## instruction -## -## 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 13, spurious reduction of production option(delimited(L_BRACKET,option(expression),R_BRACKET)) -> -## In state 73, spurious reduction of production variable -> IDENT option(delimited(L_BRACKET,option(expression),R_BRACKET)) -## In state 101, spurious reduction of production expression -> variable -## In state 132, spurious reduction of production single_instruction -> expression -## In state 104, spurious reduction of production instruction -> single_instruction -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT IDENT COLUMN COMMENT STAR -## -## Ends in an error in state: 151. -## -## line_statement -> inline_action . nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> inline_action . nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## inline_action -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT IDENT COLUMN IDENT AMPERSAND LOCATION_END -## -## Ends in an error in state: 110. -## -## final_inline_instruction -> inline_instruction . instruction [ EOL ELSE AMPERSAND ] -## final_inline_instruction -> inline_instruction . inline_action [ EOL ELSE AMPERSAND ] -## final_inline_instruction -> inline_instruction . COMMENT [ EOL ELSE AMPERSAND ] -## final_inline_instruction -> inline_instruction . [ EOL ELSE AMPERSAND ] -## inline_instruction -> inline_instruction . single_instruction nonempty_list(AMPERSAND) [ STAR SET PLUS OBJ NO MINUS L_PAREN LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION EOL ELSE COMMENT AMPERSAND ACT ] -## -## The known suffix of the stack is as follows: -## inline_instruction -## -## 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 119, spurious reduction of production inline_instruction -> inline_instruction single_instruction nonempty_list(AMPERSAND) -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT IDENT COLUMN IF STAR -## -## Ends in an error in state: 107. -## -## onliner(IF) -> IF . expression COLUMN final_inline_instruction [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## IF -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT IDENT COLUMN IF INTEGER SET -## -## Ends in an error in state: 108. -## -## expression -> expression . EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . LT GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . EXCLAMATION expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . PLUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . MINUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . STAR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . DIV expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . MOD expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . AND expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . GT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . LT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . EQUAL GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . EQUAL LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . OR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## onliner(IF) -> IF expression . COLUMN final_inline_instruction [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## IF expression -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT IDENT COLUMN ACT STAR -## -## Ends in an error in state: 112. -## -## onliner(ACT) -> ACT . expression COLUMN final_inline_instruction [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## ACT -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL ACT IDENT COLUMN ACT INTEGER SET -## -## Ends in an error in state: 113. -## -## expression -> expression . EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . LT GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . EXCLAMATION expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . PLUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . MINUS expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . STAR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . DIV expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . MOD expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . AND expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . GT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . LT EQUAL expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . EQUAL GT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . EQUAL LT expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## expression -> expression . OR expression [ STAR PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL DIV COLUMN AND ] -## onliner(ACT) -> ACT expression . COLUMN final_inline_instruction [ EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## ACT expression -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IF IDENT COLUMN EOL ELIF STAR -## -## Ends in an error in state: 156. -## -## elif -> ELIF . expression COLUMN nonempty_list(EOL) list(line_statement) [ END ELSE ELIF ] -## -## The known suffix of the stack is as follows: -## ELIF -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IF IDENT COLUMN EOL ELIF IDENT COLUMN STAR -## -## Ends in an error in state: 158. -## -## elif -> ELIF expression COLUMN . nonempty_list(EOL) list(line_statement) [ END ELSE ELIF ] -## -## The known suffix of the stack is as follows: -## ELIF expression COLUMN -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IF IDENT COLUMN EOL ELIF IDENT COLUMN EOL LOCATION_END -## -## Ends in an error in state: 159. -## -## elif -> ELIF expression COLUMN nonempty_list(EOL) . list(line_statement) [ END ELSE ELIF ] -## -## The known suffix of the stack is as follows: -## ELIF expression COLUMN nonempty_list(EOL) -## -## 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 7, spurious reduction of production nonempty_list(EOL) -> EOL -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - main: LOCATION_START EOL IF IDENT COLUMN EOL ELSE STAR ## ## Ends in an error in state: 162. @@ -1195,265 +321,4 @@ main: LOCATION_START EOL IF IDENT COLUMN EOL ELSE STAR ## ELSE ## -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IF IDENT COLUMN EOL ELSE EOL IDENT AMPERSAND LOCATION_END -## -## Ends in an error in state: 166. -## -## line_statement -> IF expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body . END option(IF) nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> IF expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body . END option(IF) nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## IF expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body -## -## 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 164, spurious reduction of production else_ -> ELSE nonempty_list(EOL) list(line_statement) -## In state 165, spurious reduction of production elif_else_body -> list(elif) else_ -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IF IDENT COLUMN EOL END STAR -## -## Ends in an error in state: 167. -## -## line_statement -> IF expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body END . option(IF) nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> IF expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body END . option(IF) nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## IF expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body END -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IF IDENT COLUMN EOL END IF STAR -## -## Ends in an error in state: 169. -## -## line_statement -> IF expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body END option(IF) . nonempty_list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## line_statement -> IF expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body END option(IF) . nonempty_list(AMPERSAND) list(EOL) [ STAR SET PLUS OBJ NO MINUS L_PAREN LOCATION_END LITERAL LET KEYWORD INTEGER IF IDENT FUNCTION END ELSE ELIF COMMENT COLUMN ACT ] -## -## The known suffix of the stack is as follows: -## IF expression COLUMN nonempty_list(EOL) list(line_statement) elif_else_body END option(IF) -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START STAR -## -## Ends in an error in state: 6. -## -## main -> list(before_location) LOCATION_START . nonempty_list(EOL) list(line_statement) LOCATION_END [ # ] -## -## The known suffix of the stack is as follows: -## list(before_location) LOCATION_START -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL END -## -## Ends in an error in state: 9. -## -## main -> list(before_location) LOCATION_START nonempty_list(EOL) . list(line_statement) LOCATION_END [ # ] -## -## The known suffix of the stack is as follows: -## list(before_location) LOCATION_START nonempty_list(EOL) -## -## 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 7, spurious reduction of production nonempty_list(EOL) -> EOL -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL MINUS STAR -## -## Ends in an error in state: 25. -## -## expression -> unary_operator . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## unary_operator -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL KEYWORD IDENT COMA STAR -## -## Ends in an error in state: 61. -## -## arguments(expression) -> expression COMA . separated_nonempty_list(COMA,expression) [ R_PAREN EOL ELSE AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression COMA -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: COMMENT STAR -## -## Ends in an error in state: 2. -## -## before_location -> COMMENT . EOL [ LOCATION_START EOL COMMENT ] -## -## The known suffix of the stack is as follows: -## COMMENT -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT MOD STAR -## -## Ends in an error in state: 29. -## -## expression -> expression MOD . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression MOD -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT PLUS STAR -## -## Ends in an error in state: 31. -## -## expression -> expression PLUS . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression PLUS -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT DIV STAR -## -## Ends in an error in state: 33. -## -## expression -> expression DIV . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression DIV -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT OR STAR -## -## Ends in an error in state: 35. -## -## expression -> expression OR . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression OR -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT MINUS STAR -## -## Ends in an error in state: 37. -## -## expression -> expression MINUS . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression MINUS -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT LT GT STAR -## -## Ends in an error in state: 40. -## -## expression -> expression LT GT . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression LT GT -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT EXCLAMATION STAR -## -## Ends in an error in state: 42. -## -## expression -> expression EXCLAMATION . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression EXCLAMATION -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT LT EQUAL STAR -## -## Ends in an error in state: 44. -## -## expression -> expression LT EQUAL . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression LT EQUAL -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT GT EQUAL STAR -## -## Ends in an error in state: 47. -## -## expression -> expression GT EQUAL . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression GT EQUAL -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL INTEGER EQUAL LT STAR -## -## Ends in an error in state: 52. -## -## expression -> expression EQUAL LT . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression EQUAL LT -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL INTEGER EQUAL GT STAR -## -## Ends in an error in state: 54. -## -## expression -> expression EQUAL GT . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression EQUAL GT -## - -<YOUR SYNTAX ERROR MESSAGE HERE> - -main: LOCATION_START EOL IDENT AND STAR -## -## Ends in an error in state: 57. -## -## expression -> expression AND . expression [ STAR R_PAREN R_BRACKET PLUS OR MOD MINUS LT GT EXCLAMATION EQUAL EOL ELSE DIV COMA COLUMN AND AMPERSAND ] -## -## The known suffix of the stack is as follows: -## expression AND -## - -<YOUR SYNTAX ERROR MESSAGE HERE> +Unexpected operator after `ELSE` |