From 7ef0541d8aebf25baeeb7843c94fb0a870ad7bda Mon Sep 17 00:00:00 2001 From: RayPals Date: Mon, 1 Jun 2026 00:53:27 +0200 Subject: [PATCH] Add docs/ERRORS.md from Claro v1.17.26 zip --- docs/ERRORS.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/ERRORS.md diff --git a/docs/ERRORS.md b/docs/ERRORS.md new file mode 100644 index 0000000..4ca1672 --- /dev/null +++ b/docs/ERRORS.md @@ -0,0 +1,29 @@ +# Claro Errors + +Claro tries to report mistakes in beginner-friendly language. + +Examples: + +```text +I do not know the command "PRNT". Did you mean "SAY"? +``` + +```text +SET needs TO. +Try: +SET name TO "Alex" +``` + +```text +IF block opened here is missing ENDIF +``` + +```text +I do not know the variable "socre" yet. Did you mean "score"? +``` + +For safer learning, run this before running a new program: + +```bash +./claro check my_program.claro +```