Generated BASIC Reference
Built from the registrations in botserver/crates/botbasic_*/src/** and
botserver/src/basic/keywords/**, plus the compiler's directive table and
rewrite aliases. Regenerate with:
python3 scripts/gen_basic_reference.py # write the pages
python3 scripts/gen_basic_reference.py --check # fail on drift
python3 scripts/gen_basic_reference.py --report # inventory only
Composite keyword registrations: 276 (257 distinct forms) · functions: 274 · rewrite aliases: 41 · compiler directives: 14
Status legend
| Status | Meaning |
|---|---|
registered |
register_custom_syntax / register_fn exists |
alias-of-rewrite |
rewritten by convert_multiword_keywords.rs |
directive |
consumed by the compiler preprocessor, not a runtime syntax |
documented-only |
named by get_all_keywords() with no registration |
Categories
| Category | Keywords | Functions | Page |
|---|---|---|---|
agent |
24 | 10 | agent |
ai |
30 | 11 | ai |
botserver |
1 | 13 | botserver |
control |
35 | 25 | control |
data |
25 | 8 | data |
dialog |
7 | 0 | dialog |
files |
14 | 1 | files |
http |
17 | 0 | http |
industry |
45 | 26 | industry |
kb |
10 | 20 | kb |
language |
2 | 142 | language |
media |
25 | 4 | media |
messaging |
32 | 4 | messaging |
social |
20 | 8 | social |
system |
3 | 2 | system |
Engine-provided keywords
These are Rhai builtins (convert_while_wend_syntax.rs), so no registration
exists and none is needed: AS, BREAK, CATCH, CONST, CONTINUE, DO, ELSE, EXPORT, FALSE, FN, FOR, IF, IMPORT, IN, LET, LOOP, MATCH, PRIVATE, RETURN, SWITCH, THROW, TRUE, TRY, WHILE.
Purpose coverage
The purpose column is filled from a //! module comment or the /// doc
comment of the owning function. Today it covers 25/290
keywords and 17/274 functions; — means the
source carries no doc comment, not that the keyword is undocumented here.
Advertised but not registered
get_all_keywords() (botserver/src/basic/keywords/mod.rs) lists names that
have no register_custom_syntax, register_fn, directive or rewrite behind
them. A name in that list is not proof of implementation; this table is the
drift report, not a feature list.
| Name | .bas templates using it |
|---|---|
ADD TOOL |
20 |
AUDIT LOG |
2 |
AUTO TASK |
0 |
BOT REFLECTION |
0 |
BROADCAST TO BOTS |
0 |
CHECK CONSTRAINTS |
0 |
DECIDE |
1 |
MCP INVOKE |
0 |
MCP LIST TOOLS |
0 |
OPTION A OR B |
0 |
PLAN END |
0 |
PLAN START |
0 |
POST HTTP |
0 |
PUT HTTP |
0 |
REQUIRE APPROVAL |
0 |
SAVE FROM UNSTRUCTURED |
0 |
SECURITY GET REPORT |
0 |
SECURITY HARDENING SCORE |
0 |
SECURITY INSTALL TOOL |
0 |
SECURITY RUN SCAN |
0 |
SECURITY START SERVICE |
0 |
SECURITY STOP SERVICE |
0 |
SECURITY TOOL STATUS |
0 |
SECURITY UPDATE DEFINITIONS |
0 |
SIMULATE IMPACT |
0 |
SMS |
7 |
TRANSFER CONVERSATION |
1 |
USE MCP |
0 |
USER FACTS |
0 |
ADD TOOL is template-only: 20 .bas files under bottemplates/
use it, no registration exists, and USE TOOL is the implemented form.
Either implement it as an alias of USE TOOL or migrate those templates;
until then the reference never marks it implemented.