From 0da1095c036959529d9e2fea4196a672691fa8b5 Mon Sep 17 00:00:00 2001 From: RayPals Date: Mon, 1 Jun 2026 00:55:44 +0200 Subject: [PATCH] Add support/lsp/claro_lsp_stub.py from Claro v1.17.26 zip --- support/lsp/claro_lsp_stub.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 support/lsp/claro_lsp_stub.py diff --git a/support/lsp/claro_lsp_stub.py b/support/lsp/claro_lsp_stub.py new file mode 100644 index 0000000..dbfe9c5 --- /dev/null +++ b/support/lsp/claro_lsp_stub.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +"""Tiny Claro IDE helper stub for v1.17.26. +It prints completion words. A real Language Server Protocol service can build on this. +""" +KEYWORDS = [ + "SAY", "ASK", "SET", "IF", "ELSE", "END", "REPEAT", "TEACH", "DO", + "CLASS", "NEW", "START TASK", "WAIT TASK", "HTTP GET", "OPEN WINDOW", + "CLEAR SCREEN", "DRAW TEXT", "UPDATE SCREEN", "CLOSE WINDOW", + "TYPE OF", "CHECK TYPE", +] +TYPES = ["NUMBER", "TEXT", "YESNO", "LIST", "MAP", "OBJECT", "ANY"] +for word in KEYWORDS + TYPES: + print(word)