User guide
This is the human documentation for embedding ReScripted in a C++ project. C++17. One header: ReScripted.h.
Read these in order. Each page adds one piece. The words stay the same.
- Getting started — a program that prints
hello - Putting the language in the binary — keep the JSON in a file, compile it in
- Language JSON — keywords, comments,
command,entity - Calling C++ from a script —
engine.bind("spawn", …) - Libraries —
import math - Loading scripts — load, run, call, unload
- API reference — names and signatures
A coding agent that is writing the language JSON should start at ../agents/AGENTS.md, not here.