Skip to content

Commit

Permalink
Add 1077 test files in testsuite/tests/generated-parse-errors.
Browse files Browse the repository at this point in the history
    We currently have:
      713 "Error: Syntax error"
      364 "Error: Syntax error: <something> expected"

    In the second category, 307 messages include a secondary message
    of the form "This <thing> might be unmatched".
  • Loading branch information
fpottier committed Dec 14, 2020
1 parent dedb85c commit 7da7acb
Show file tree
Hide file tree
Showing 2,155 changed files with 14,140 additions and 0 deletions.
@@ -0,0 +1,4 @@
File "implementation_ASSERT_LBRACKETAT_AND_RBRACKET_ASSERT.ml", line 7, characters 16-22:
7 | assert [@ and ] assert
^^^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
assert [@ and ] assert
@@ -0,0 +1,4 @@
File "implementation_ASSERT_PERCENT_AND_ASSERT.ml", line 7, characters 13-19:
7 | assert % and assert
^^^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
assert % and assert
@@ -0,0 +1,4 @@
File "implementation_ASSERT_UIDENT_UIDENT.ml", line 7, characters 14-20:
7 | assert UIdent UIdent
^^^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
assert UIdent UIdent
@@ -0,0 +1,4 @@
File "implementation_ASSERT_WITH.ml", line 7, characters 7-11:
7 | assert with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
assert with
@@ -0,0 +1,4 @@
File "implementation_BACKQUOTE_UIDENT_UIDENT_UIDENT.ml", line 7, characters 16-22:
7 | ` UIdent UIdent UIdent
^^^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
` UIdent UIdent UIdent
@@ -0,0 +1,4 @@
File "implementation_BACKQUOTE_UIDENT_WHILE.ml", line 7, characters 9-14:
7 | ` UIdent while
^^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
` UIdent while
@@ -0,0 +1,4 @@
File "implementation_BACKQUOTE_WITH.ml", line 7, characters 2-6:
7 | ` with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
` with
@@ -0,0 +1,4 @@
File "implementation_BANG_WITH.ml", line 7, characters 2-6:
7 | ! with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
! with
@@ -0,0 +1,4 @@
File "implementation_BEGIN_LBRACKETAT_AND_RBRACKET_AND.ml", line 7, characters 15-18:
7 | begin [@ and ] and
^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
begin [@ and ] and
@@ -0,0 +1,4 @@
File "implementation_BEGIN_PERCENT_AND_VIRTUAL.ml", line 7, characters 12-19:
7 | begin % and virtual
^^^^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
begin % and virtual
@@ -0,0 +1,8 @@
File "implementation_BEGIN_UIDENT_WITH.ml", line 7, characters 13-17:
7 | begin UIdent with
^^^^
Error: Syntax error: 'end' expected
File "implementation_BEGIN_UIDENT_WITH.ml", line 7, characters 0-5:
7 | begin UIdent with
^^^^^
This 'begin' might be unmatched
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
begin UIdent with
@@ -0,0 +1,4 @@
File "implementation_BEGIN_WITH.ml", line 7, characters 6-10:
7 | begin with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
begin with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LBRACKETAT_AND_RBRACKET_LBRACELESS.ml", line 7, characters 15-17:
7 | class [@ and ] {<
^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class [@ and ] {<
@@ -0,0 +1,4 @@
File "implementation_CLASS_LBRACKET_UNDERSCORE_RBRACKET_WITH.ml", line 7, characters 12-16:
7 | class [ _ ] with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class [ _ ] with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LBRACKET_UNDERSCORE_WITH.ml", line 7, characters 10-14:
7 | class [ _ with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class [ _ with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LBRACKET_WITH.ml", line 7, characters 8-12:
7 | class [ with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class [ with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LBRACKET_UNDERSCORE_RBRACKET_WITH.ml", line 7, characters 21-25:
7 | class lident : [ _ ] with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : [ _ ] with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LBRACKET_UNDERSCORE_WITH.ml", line 7, characters 19-23:
7 | class lident : [ _ with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : [ _ with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LBRACKET_WITH.ml", line 7, characters 17-21:
7 | class lident : [ with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : [ with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_OPEN_BANG_LBRACKETAT_AND_RBRACKET_WHILE.ml", line 7, characters 35-40:
7 | class lident : let open ! [@ and ] while
^^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let open ! [@ and ] while
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_OPEN_BANG_UIDENT_IN_QUOTED_STRING_EXPR_WITH.ml", line 7, characters 52-56:
7 | class lident : let open ! UIdent in {%hello|world|} with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let open ! UIdent in {%hello|world|} with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_OPEN_BANG_UIDENT_IN_WITH.ml", line 7, characters 36-40:
7 | class lident : let open ! UIdent in with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let open ! UIdent in with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_OPEN_BANG_UIDENT_WITH.ml", line 7, characters 33-37:
7 | class lident : let open ! UIdent with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let open ! UIdent with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_OPEN_BANG_WITH.ml", line 7, characters 26-30:
7 | class lident : let open ! with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let open ! with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_OPEN_LBRACKETAT_AND_RBRACKET_WHILE.ml", line 7, characters 33-38:
7 | class lident : let open [@ and ] while
^^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let open [@ and ] while
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_OPEN_UIDENT_IN_QUOTED_STRING_EXPR_WITH.ml", line 7, characters 50-54:
7 | class lident : let open UIdent in {%hello|world|} with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let open UIdent in {%hello|world|} with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_OPEN_UIDENT_IN_WITH.ml", line 7, characters 34-38:
7 | class lident : let open UIdent in with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let open UIdent in with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_OPEN_UIDENT_WITH.ml", line 7, characters 31-35:
7 | class lident : let open UIdent with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let open UIdent with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_OPEN_WITH.ml", line 7, characters 24-28:
7 | class lident : let open with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let open with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LET_WITH.ml", line 7, characters 19-23:
7 | class lident : let with
^^^^
Error: Syntax error
@@ -0,0 +1,7 @@
(* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
class lident : let with
@@ -0,0 +1,4 @@
File "implementation_CLASS_LIDENT_COLON_LIDENT_COLON_UNDERSCORE_MINUSGREATER_WITH.ml", line 7, characters 29-33:
7 | class lident : lident : _ -> with
^^^^
Error: Syntax error

0 comments on commit 7da7acb

Please sign in to comment.