CS143-Lab/assignments/PA3J/bad.cl
2023-03-16 15:55:37 +00:00

30 lines
484 B
Common Lisp

(*
* execute "coolc bad.cl" to see the error messages that the coolc parser
* generates
*
* execute "parsetest < 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 {
;