blob: c7102a2ecc44612cb9d177b8a592a0ce50ff6c6b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
(*
* execute "coolc bad.cl" to see the error messages that the coolc parser
* generates
*
* execute "myparser bad.cl" to see the error messages that your parser
* generates
*)
(* no error *)
class A {
};
(* error: b is not a type identifier *)
Class b inherits A {
};
(* error: a is not a type identifier *)
Class C inherits a {
};
(* error: keyword inherits is misspelled *)
Class D inherts A {
};
(* error: closing brace is missing *)
Class E inherits A {
;
|