From be726841a05c1b7d2513f23fd4bc16c82e5e30c9 Mon Sep 17 00:00:00 2001 From: RayPals Date: Mon, 1 Jun 2026 00:54:13 +0200 Subject: [PATCH] Add docs/LINTER.md from Claro v1.17.26 zip --- docs/LINTER.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/LINTER.md diff --git a/docs/LINTER.md b/docs/LINTER.md new file mode 100644 index 0000000..faa6872 --- /dev/null +++ b/docs/LINTER.md @@ -0,0 +1,17 @@ +# Claro Checker + +`claro check file.claro` looks for beginner mistakes before running a program. + +RC3 catches: + +- unknown commands +- command typos such as `PRINT` or `PRNT` +- missing `TO` in `SET` +- missing `AS` in `ASK`, `GET`, and `COUNT` +- missing `ENDIF`, `DONE`, `LEARNED`, `ENDTRY`, and other block endings +- `ELSE` without an `IF` +- `CATCH` without a `TRY` +- common misspelled variables +- variables created by `ASK`, `GET`, `COUNT`, `READ`, `PARSE`, `MAKE`, `FOR`, and `FOR EACH` + +The checker is meant to be friendly, not scary. It is still not a complete static analyzer.